Move update toast localization to common
This commit is contained in:
parent
1ef795e040
commit
81abb93ed6
5 changed files with 23 additions and 23 deletions
|
|
@ -25,7 +25,7 @@ const UpdateToast = ({
|
||||||
onActionClicked,
|
onActionClicked,
|
||||||
onCloseClicked,
|
onCloseClicked,
|
||||||
}: Props) => {
|
}: Props) => {
|
||||||
const { t } = useTranslation('roadmap')
|
const { t } = useTranslation('common')
|
||||||
|
|
||||||
const classes = classNames({
|
const classes = classNames({
|
||||||
Update: true,
|
Update: true,
|
||||||
|
|
@ -54,10 +54,10 @@ const UpdateToast = ({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Toast
|
<Toast
|
||||||
altText={t(`toasts.description.${updateType}`)}
|
altText={t(`toasts.update.description.${updateType}`)}
|
||||||
className={classes}
|
className={classes}
|
||||||
title={t(`toasts.title`)}
|
title={t(`toasts.update.title`)}
|
||||||
content={t(`toasts.description.${updateType}`)}
|
content={t(`toasts.update.description.${updateType}`)}
|
||||||
open={open}
|
open={open}
|
||||||
type="background"
|
type="background"
|
||||||
onCloseClick={handleCloseClicked}
|
onCloseClick={handleCloseClicked}
|
||||||
|
|
@ -66,7 +66,7 @@ const UpdateToast = ({
|
||||||
buttonSize="small"
|
buttonSize="small"
|
||||||
contained={true}
|
contained={true}
|
||||||
onClick={handleButtonClicked}
|
onClick={handleButtonClicked}
|
||||||
text={t('toasts.button')}
|
text={t('toasts.update.button')}
|
||||||
/>
|
/>
|
||||||
</Toast>
|
</Toast>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -4,14 +4,6 @@
|
||||||
"title": "Roadmap"
|
"title": "Roadmap"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"toasts": {
|
|
||||||
"title": "New update",
|
|
||||||
"description": {
|
|
||||||
"content": "New items have been added from the latest Granblue Fantasy update.",
|
|
||||||
"feature": "Now you can remix other people's teams, add Character rings and earrings, set Shields and Manatura on teams, and more!"
|
|
||||||
},
|
|
||||||
"button": "Learn more"
|
|
||||||
},
|
|
||||||
"about": {
|
"about": {
|
||||||
"subtitle": "Granblue.team is a tool to save and share team compositions for <2>Granblue Fantasy</2>, a social RPG from Cygames.",
|
"subtitle": "Granblue.team is a tool to save and share team compositions for <2>Granblue Fantasy</2>, a social RPG from Cygames.",
|
||||||
"explanation": [
|
"explanation": [
|
||||||
|
|
|
||||||
|
|
@ -401,7 +401,15 @@
|
||||||
},
|
},
|
||||||
"toasts": {
|
"toasts": {
|
||||||
"copied": "This party's URL was copied to your clipboard",
|
"copied": "This party's URL was copied to your clipboard",
|
||||||
"remixed": "You remixed {{title}}"
|
"remixed": "You remixed {{title}}",
|
||||||
|
"update": {
|
||||||
|
"title": "New update",
|
||||||
|
"description": {
|
||||||
|
"content": "New items have been added from the latest Granblue Fantasy update.",
|
||||||
|
"feature": "Now you can remix other people's teams, add Character rings and earrings, set Shields and Manatura on teams, and more!"
|
||||||
|
},
|
||||||
|
"button": "Learn more"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"tokens": {
|
"tokens": {
|
||||||
"remix": "Remixed"
|
"remix": "Remixed"
|
||||||
|
|
|
||||||
|
|
@ -4,14 +4,6 @@
|
||||||
"title": "ロードマップ"
|
"title": "ロードマップ"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"toasts": {
|
|
||||||
"title": "新アプデ",
|
|
||||||
"description": {
|
|
||||||
"content": "グランブルーファンタジーの新アプデのコンテンツが追加しました。",
|
|
||||||
"feature": "編成をリミックスしたり、キャラの指輪や耳飾りを付けたり、盾やマナベリを装備したりことをできるようにしました。"
|
|
||||||
},
|
|
||||||
"button": "詳細をみる"
|
|
||||||
},
|
|
||||||
"about": {
|
"about": {
|
||||||
"subtitle": "Granblue.teamは<2>グランブルーファンタジー</2>の編成を作成・保存・共有するサイトです。",
|
"subtitle": "Granblue.teamは<2>グランブルーファンタジー</2>の編成を作成・保存・共有するサイトです。",
|
||||||
"explanation": [
|
"explanation": [
|
||||||
|
|
|
||||||
|
|
@ -402,7 +402,15 @@
|
||||||
},
|
},
|
||||||
"toasts": {
|
"toasts": {
|
||||||
"copied": "この編成のURLはクリップボードにコピーされました",
|
"copied": "この編成のURLはクリップボードにコピーされました",
|
||||||
"remixed": "{{title}}をリミックスしました"
|
"remixed": "{{title}}をリミックスしました",
|
||||||
|
"update": {
|
||||||
|
"title": "新アプデ",
|
||||||
|
"description": {
|
||||||
|
"content": "グランブルーファンタジーの新アプデのコンテンツが追加しました。",
|
||||||
|
"feature": "編成をリミックスしたり、キャラの指輪や耳飾りを付けたり、盾やマナベリを装備したりことをできるようにしました。"
|
||||||
|
},
|
||||||
|
"button": "詳細をみる"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"tokens": {
|
"tokens": {
|
||||||
"remix": "リミックスされた"
|
"remix": "リミックスされた"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue