diff --git a/components/character/CharacterModal/index.tsx b/components/character/CharacterModal/index.tsx index 6a170d6d..09e3622e 100644 --- a/components/character/CharacterModal/index.tsx +++ b/components/character/CharacterModal/index.tsx @@ -270,7 +270,7 @@ const CharacterModal = ({ - + You will lose all changes to{' '} {{ objectName: gridCharacter.object.name[locale] }}{' '} if you continue. @@ -281,9 +281,9 @@ const CharacterModal = ({ } open={alertOpen} - primaryActionText="Close" + primaryActionText={t('alert.unsaved_changes.buttons.confirm')} primaryAction={close} - cancelActionText="Nevermind" + cancelActionText={t('alert.unsaved_changes.buttons.cancel')} cancelAction={() => setAlertOpen(false)} /> ) diff --git a/components/weapon/WeaponModal/index.tsx b/components/weapon/WeaponModal/index.tsx index 13d63335..18cf3f4b 100644 --- a/components/weapon/WeaponModal/index.tsx +++ b/components/weapon/WeaponModal/index.tsx @@ -444,7 +444,7 @@ const WeaponModal = ({ - + You will lose all changes to{' '} {{ objectName: gridWeapon.object.name[locale] }} if you continue. @@ -455,9 +455,9 @@ const WeaponModal = ({ } open={alertOpen} - primaryActionText="Close" + primaryActionText={t('alert.unsaved_changes.buttons.confirm')} primaryAction={close} - cancelActionText="Nevermind" + cancelActionText={t('alert.unsaved_changes.buttons.cancel')} cancelAction={() => setAlertOpen(false)} /> ) diff --git a/public/locales/en/common.json b/public/locales/en/common.json index 0bc3c376..0d13bf7d 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -12,11 +12,15 @@ }, "alert": { "confirm_logout": "Are you sure you want to log out?", + "incompatible_weapon": "You've selected a weapon that can't be added to the Additional Weapon slots.", "unsaved_changes": { - "party": "You will lose all changes to your party {objectName} if you continue.

Are you sure you want to continue without saving?", - "object": "You will lose all changes to {objectName} if you continue.

Are you sure you want to continue without saving?" - }, - "incompatible_weapon": "You've selected a weapon that can't be added to the Additional Weapon slots." + "party": "You will lose all changes to your party {{objectName}} if you continue.

Are you sure you want to continue without saving?", + "object": "You will lose all changes to {{objectName}} if you continue.

Are you sure you want to continue without saving?", + "buttons": { + "confirm": "Continue without saving", + "cancel": "Nevermind" + } + } }, "ax": { "no_skill": "No AX Skill", diff --git a/public/locales/ja/common.json b/public/locales/ja/common.json index 21ddb6ef..31bb4ed2 100644 --- a/public/locales/ja/common.json +++ b/public/locales/ja/common.json @@ -12,9 +12,15 @@ }, "alert": { "confirm_logout": "ログアウトしますか", - "unsaved_changes_party": "「{objectName}」という編成の変更は保存していません。

変更を保存せずに続けますか?", - "unsaved_changes_object": "「{objectName}」の変更は保存していません。

変更を保存せずに続けますか?", - "incompatible_weapon": "Additional Weaponsに装備できない武器を入れました。" + "incompatible_weapon": "Additional Weaponsに装備できない武器を入れました。", + "unsaved_changes": { + "party": "「{{objectName}}」という編成の変更は保存していません。

変更を保存せずに続けますか?", + "object": "「{{objectName}}」の変更は保存していません。

変更を保存せずに続けますか?", + "buttons": { + "confirm": "変更せずに続ける", + "cancel": "キャンセル" + } + } }, "ax": { "no_skill": "EXスキルなし",