Move update toast localization to common

This commit is contained in:
Justin Edmund 2023-02-01 23:40:28 -08:00
parent 1ef795e040
commit 81abb93ed6
5 changed files with 23 additions and 23 deletions

View file

@ -25,7 +25,7 @@ const UpdateToast = ({
onActionClicked,
onCloseClicked,
}: Props) => {
const { t } = useTranslation('roadmap')
const { t } = useTranslation('common')
const classes = classNames({
Update: true,
@ -54,10 +54,10 @@ const UpdateToast = ({
return (
<Toast
altText={t(`toasts.description.${updateType}`)}
altText={t(`toasts.update.description.${updateType}`)}
className={classes}
title={t(`toasts.title`)}
content={t(`toasts.description.${updateType}`)}
title={t(`toasts.update.title`)}
content={t(`toasts.update.description.${updateType}`)}
open={open}
type="background"
onCloseClick={handleCloseClicked}
@ -66,7 +66,7 @@ const UpdateToast = ({
buttonSize="small"
contained={true}
onClick={handleButtonClicked}
text={t('toasts.button')}
text={t('toasts.update.button')}
/>
</Toast>
)

View file

@ -4,14 +4,6 @@
"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": {
"subtitle": "Granblue.team is a tool to save and share team compositions for <2>Granblue Fantasy</2>, a social RPG from Cygames.",
"explanation": [

View file

@ -401,7 +401,15 @@
},
"toasts": {
"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": {
"remix": "Remixed"

View file

@ -4,14 +4,6 @@
"title": "ロードマップ"
}
},
"toasts": {
"title": "新アプデ",
"description": {
"content": "グランブルーファンタジーの新アプデのコンテンツが追加しました。",
"feature": "編成をリミックスしたり、キャラの指輪や耳飾りを付けたり、盾やマナベリを装備したりことをできるようにしました。"
},
"button": "詳細をみる"
},
"about": {
"subtitle": "Granblue.teamは<2>グランブルーファンタジー</2>の編成を作成・保存・共有するサイトです。",
"explanation": [

View file

@ -402,7 +402,15 @@
},
"toasts": {
"copied": "この編成のURLはクリップボードにコピーされました",
"remixed": "{{title}}をリミックスしました"
"remixed": "{{title}}をリミックスしました",
"update": {
"title": "新アプデ",
"description": {
"content": "グランブルーファンタジーの新アプデのコンテンツが追加しました。",
"feature": "編成をリミックスしたり、キャラの指輪や耳飾りを付けたり、盾やマナベリを装備したりことをできるようにしました。"
},
"button": "詳細をみる"
}
},
"tokens": {
"remix": "リミックスされた"