Add localizations
This commit is contained in:
parent
ea8fd7a423
commit
3d71ad1d8b
5 changed files with 36 additions and 18 deletions
|
|
@ -33,6 +33,7 @@ import RemixIcon from '~public/icons/Remix.svg'
|
||||||
import SaveIcon from '~public/icons/Save.svg'
|
import SaveIcon from '~public/icons/Save.svg'
|
||||||
|
|
||||||
import './index.scss'
|
import './index.scss'
|
||||||
|
import Tooltip from '~components/Tooltip'
|
||||||
|
|
||||||
const Header = () => {
|
const Header = () => {
|
||||||
// Localization
|
// Localization
|
||||||
|
|
@ -226,28 +227,32 @@ const Header = () => {
|
||||||
|
|
||||||
const saveButton = () => {
|
const saveButton = () => {
|
||||||
return (
|
return (
|
||||||
<Button
|
<Tooltip content={t('tooltips.save')}>
|
||||||
leftAccessoryIcon={<SaveIcon />}
|
<Button
|
||||||
className={classNames({
|
leftAccessoryIcon={<SaveIcon />}
|
||||||
Save: true,
|
className={classNames({
|
||||||
Saved: party.favorited,
|
Save: true,
|
||||||
})}
|
Saved: party.favorited,
|
||||||
blended={true}
|
})}
|
||||||
text={party.favorited ? t('buttons.saved') : t('buttons.save')}
|
blended={true}
|
||||||
onClick={toggleFavorite}
|
text={party.favorited ? t('buttons.saved') : t('buttons.save')}
|
||||||
/>
|
onClick={toggleFavorite}
|
||||||
|
/>
|
||||||
|
</Tooltip>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const remixButton = () => {
|
const remixButton = () => {
|
||||||
return (
|
return (
|
||||||
<Button
|
<Tooltip content={t('tooltips.remix')}>
|
||||||
leftAccessoryIcon={<RemixIcon />}
|
<Button
|
||||||
className="Remix"
|
leftAccessoryIcon={<RemixIcon />}
|
||||||
blended={true}
|
className="Remix"
|
||||||
text={t('buttons.remix')}
|
blended={true}
|
||||||
onClick={remixTeam}
|
text={t('buttons.remix')}
|
||||||
/>
|
onClick={remixTeam}
|
||||||
|
/>
|
||||||
|
</Tooltip>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -710,7 +710,7 @@ const PartyDetails = (props: Props) => {
|
||||||
{name ? name : t('no_title')}
|
{name ? name : t('no_title')}
|
||||||
</h1>
|
</h1>
|
||||||
{party.remix && party.sourceParty ? (
|
{party.remix && party.sourceParty ? (
|
||||||
<Tooltip content="Go to original team">
|
<Tooltip content={t('tooltips.source')}>
|
||||||
<Button
|
<Button
|
||||||
className="IconButton Blended"
|
className="IconButton Blended"
|
||||||
leftAccessoryIcon={<RemixIcon />}
|
leftAccessoryIcon={<RemixIcon />}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
.Tooltip {
|
.Tooltip {
|
||||||
background: var(--dialog-bg);
|
background: var(--dialog-bg);
|
||||||
border-radius: $card-corner;
|
border-radius: $card-corner;
|
||||||
|
line-height: 1.3;
|
||||||
padding: $unit * 1.5;
|
padding: $unit * 1.5;
|
||||||
|
z-index: 35;
|
||||||
|
max-width: 200px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -390,6 +390,11 @@
|
||||||
"toasts": {
|
"toasts": {
|
||||||
"copied": "This party's URL was copied to your clipboard"
|
"copied": "This party's URL was copied to your clipboard"
|
||||||
},
|
},
|
||||||
|
"tooltips": {
|
||||||
|
"remix": "Make a copy of this team",
|
||||||
|
"save": "Save this team to your account",
|
||||||
|
"source": "Go to original team"
|
||||||
|
},
|
||||||
"extra_weapons": "Additional Weapons",
|
"extra_weapons": "Additional Weapons",
|
||||||
"equipped": "Equipped",
|
"equipped": "Equipped",
|
||||||
"coming_soon": "Coming Soon",
|
"coming_soon": "Coming Soon",
|
||||||
|
|
|
||||||
|
|
@ -391,6 +391,11 @@
|
||||||
"toasts": {
|
"toasts": {
|
||||||
"copied": "この編成のURLはクリップボードにコピーされました"
|
"copied": "この編成のURLはクリップボードにコピーされました"
|
||||||
},
|
},
|
||||||
|
"tooltips": {
|
||||||
|
"remix": "この編成をコピーする",
|
||||||
|
"save": "この編成をアカウントに保存する",
|
||||||
|
"source": "オリジナルの編成へ"
|
||||||
|
},
|
||||||
"equipped": "装備した",
|
"equipped": "装備した",
|
||||||
"extra_weapons": "Additional Weapons",
|
"extra_weapons": "Additional Weapons",
|
||||||
"coming_soon": "開発中",
|
"coming_soon": "開発中",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue