From 534d608171281c29be238ae12797f4a4dcf289f2 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Fri, 27 Jan 2023 23:44:41 -0800 Subject: [PATCH] Add localizations --- components/Header/index.tsx | 6 +++--- public/locales/en/common.json | 7 +++++++ public/locales/ja/common.json | 7 +++++++ 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/components/Header/index.tsx b/components/Header/index.tsx index e99a9b70..8fec3c27 100644 --- a/components/Header/index.tsx +++ b/components/Header/index.tsx @@ -217,7 +217,7 @@ const Header = () => { open={copyToastOpen} duration={2400} type="foreground" - content="This party's URL was copied to your clipboard" + content={t('toasts.copied')} onOpenChange={handleCopyToastOpenChanged} onCloseClick={handleCopyToastCloseClicked} /> @@ -233,7 +233,7 @@ const Header = () => { Saved: party.favorited, })} blended={true} - text={party.favorited ? 'Saved' : 'Save'} + text={party.favorited ? t('buttons.saved') : t('buttons.save')} onClick={toggleFavorite} /> ) @@ -245,7 +245,7 @@ const Header = () => { leftAccessoryIcon={} className="Remix" blended={true} - text="Remix" + text={t('buttons.remix')} onClick={remixTeam} /> ) diff --git a/public/locales/en/common.json b/public/locales/en/common.json index 1754ed94..1d9f394a 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -39,6 +39,9 @@ "show_info": "Edit info", "hide_info": "Hide info", "save_info": "Save info", + "remix": "Remix", + "save": "Save", + "saved": "Saved", "menu": "Menu", "new": "New", "wiki": "View more on gbf.wiki" @@ -384,6 +387,9 @@ "no_skill": "No skill" } }, + "toasts": { + "copied": "This party's URL was copied to your clipboard" + }, "extra_weapons": "Additional Weapons", "equipped": "Equipped", "coming_soon": "Coming Soon", @@ -394,5 +400,6 @@ "no_user": "Anonymous", "no_job": "No class", "no_value": "No value", + "remixes": "Remixes", "level": "Level" } diff --git a/public/locales/ja/common.json b/public/locales/ja/common.json index 305251b1..a76a1e08 100644 --- a/public/locales/ja/common.json +++ b/public/locales/ja/common.json @@ -39,6 +39,9 @@ "show_info": "詳細を編集", "save_info": "詳細を保存", "hide_info": "詳細を非表示", + "remix": "リミックス", + "save": "保存する", + "saved": "保存", "menu": "メニュー", "new": "作成", "wiki": "gbf.wikiで詳しく見る" @@ -385,6 +388,9 @@ "no_skill": "設定されていません" } }, + "toasts": { + "copied": "この編成のURLはクリップボードにコピーされました" + }, "equipped": "装備した", "extra_weapons": "Additional Weapons", "coming_soon": "開発中", @@ -395,5 +401,6 @@ "no_user": "無名", "no_job": "ジョブなし", "no_value": "値なし", + "remixes": "リミックスされた編成", "level": "レベル" }