From 81abb93ed61fca2f4ff86015a5a17a504f5b2a0c Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Wed, 1 Feb 2023 23:40:28 -0800 Subject: [PATCH] Move update toast localization to common --- components/UpdateToast/index.tsx | 10 +++++----- public/locales/en/about.json | 8 -------- public/locales/en/common.json | 10 +++++++++- public/locales/ja/about.json | 8 -------- public/locales/ja/common.json | 10 +++++++++- 5 files changed, 23 insertions(+), 23 deletions(-) diff --git a/components/UpdateToast/index.tsx b/components/UpdateToast/index.tsx index d827abf0..42d125f0 100644 --- a/components/UpdateToast/index.tsx +++ b/components/UpdateToast/index.tsx @@ -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 ( ) diff --git a/public/locales/en/about.json b/public/locales/en/about.json index 253ba4e1..ecd23959 100644 --- a/public/locales/en/about.json +++ b/public/locales/en/about.json @@ -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, a social RPG from Cygames.", "explanation": [ diff --git a/public/locales/en/common.json b/public/locales/en/common.json index 07bc44d6..9a92582a 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -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" diff --git a/public/locales/ja/about.json b/public/locales/ja/about.json index b75e2996..61f62d3e 100644 --- a/public/locales/ja/about.json +++ b/public/locales/ja/about.json @@ -4,14 +4,6 @@ "title": "ロードマップ" } }, - "toasts": { - "title": "新アプデ", - "description": { - "content": "グランブルーファンタジーの新アプデのコンテンツが追加しました。", - "feature": "編成をリミックスしたり、キャラの指輪や耳飾りを付けたり、盾やマナベリを装備したりことをできるようにしました。" - }, - "button": "詳細をみる" - }, "about": { "subtitle": "Granblue.teamは<2>グランブルーファンタジーの編成を作成・保存・共有するサイトです。", "explanation": [ diff --git a/public/locales/ja/common.json b/public/locales/ja/common.json index a80ad436..3b7141bf 100644 --- a/public/locales/ja/common.json +++ b/public/locales/ja/common.json @@ -402,7 +402,15 @@ }, "toasts": { "copied": "この編成のURLはクリップボードにコピーされました", - "remixed": "{{title}}をリミックスしました" + "remixed": "{{title}}をリミックスしました", + "update": { + "title": "新アプデ", + "description": { + "content": "グランブルーファンタジーの新アプデのコンテンツが追加しました。", + "feature": "編成をリミックスしたり、キャラの指輪や耳飾りを付けたり、盾やマナベリを装備したりことをできるようにしました。" + }, + "button": "詳細をみる" + } }, "tokens": { "remix": "リミックスされた"