From 7636536973dfc390aa97d60f52771a9b0fba558d Mon Sep 17 00:00:00 2001
From: syuilo <Syuilotan@yahoo.co.jp>
Date: Sat, 8 Apr 2023 16:06:08 +0900
Subject: [PATCH] tweak locale

---
 locales/ja-JP.yml                              | 18 ++++++++++--------
 packages/frontend/src/pages/settings/index.vue |  2 +-
 .../frontend/src/pages/settings/migration.vue  | 14 +++++++-------
 3 files changed, 18 insertions(+), 16 deletions(-)

diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml
index af47408c67..32bf47c209 100644
--- a/locales/ja-JP.yml
+++ b/locales/ja-JP.yml
@@ -989,16 +989,18 @@ enableChartsForFederatedInstances: "リモートサーバーのチャートを
 showClipButtonInNoteFooter: "ノートのアクションにクリップを追加"
 largeNoteReactions: "ノートのリアクションを大きく表示"
 noteIdOrUrl: "ノートIDまたはURL"
-migration: "アカウントの引っ越し"
-moveTo: "このアカウントを新しいアカウントに引っ越す"
-moveToLabel: "引っ越し先のアカウント:"
-moveAccountDescription: "この操作は取り消せません。まずは引っ越し先のアカウントでこのアカウントに対しエイリアスを作成したことを確認してください。エイリアス作成後、引っ越し先のアカウントをこのように入力してください:@person@instance.com"
-moveFrom: "別のアカウントからこのアカウントに引っ越す"
-moveFromLabel: "引っ越し元のアカウント:"
-moveFromDescription: "別のアカウントからこのアカウントにフォロワーを引き継いで引っ越したい場合、ここでエイリアスを作成しておく必要があります。必ず引っ越しを実行する前に作成してください!引っ越し元のアカウントをこのように入力してください:@person@instance.com"
-migrationConfirm: "本当にこのアカウントを {account} に引っ越しますか?一度引っ越しを行うと取り消せず、二度とこのアカウントを元の状態で使用できなくなります。\nまた、引っ越し先のアカウントでエイリアスを作成したことを確認してください。"
+accountMigration: "アカウントの引っ越し"
 accountMoved: "このユーザーは新しいアカウントに引っ越しました:"
 
+_accountMigration:
+  moveTo: "このアカウントを新しいアカウントに引っ越す"
+  moveToLabel: "引っ越し先のアカウント:"
+  moveAccountDescription: "この操作は取り消せません。まずは引っ越し先のアカウントでこのアカウントに対しエイリアスを作成したことを確認してください。エイリアス作成後、引っ越し先のアカウントをこのように入力してください:@person@instance.com"
+  moveFrom: "別のアカウントからこのアカウントに引っ越す"
+  moveFromLabel: "引っ越し元のアカウント:"
+  moveFromDescription: "別のアカウントからこのアカウントにフォロワーを引き継いで引っ越したい場合、ここでエイリアスを作成しておく必要があります。必ず引っ越しを実行する前に作成してください!引っ越し元のアカウントをこのように入力してください:@person@instance.com"
+  migrationConfirm: "本当にこのアカウントを {account} に引っ越しますか?一度引っ越しを行うと取り消せず、二度とこのアカウントを元の状態で使用できなくなります。\nまた、引っ越し先のアカウントでエイリアスを作成したことを確認してください。"
+
 _achievements:
   earnedAt: "獲得日時"
   _types:
diff --git a/packages/frontend/src/pages/settings/index.vue b/packages/frontend/src/pages/settings/index.vue
index 9824fa8c15..7e9ec3de93 100644
--- a/packages/frontend/src/pages/settings/index.vue
+++ b/packages/frontend/src/pages/settings/index.vue
@@ -166,7 +166,7 @@ const menuDef = computed(() => [{
 		active: currentPage?.route.name === 'import-export',
 	}, {
 		icon: 'ti ti-plane',
-		text: i18n.ts.migration,
+		text: i18n.ts.accountMigration,
 		to: '/settings/migration',
 		active: currentPage?.route.name === 'migration',
 	}, {
diff --git a/packages/frontend/src/pages/settings/migration.vue b/packages/frontend/src/pages/settings/migration.vue
index 1fd3d64fd5..2ef8af7481 100644
--- a/packages/frontend/src/pages/settings/migration.vue
+++ b/packages/frontend/src/pages/settings/migration.vue
@@ -1,22 +1,22 @@
 <template>
 <div class="_gaps_m">
 	<FormSection first>
-		<template #label>{{ i18n.ts.moveTo }}</template>
+		<template #label>{{ i18n.ts._accountMigration.moveTo }}</template>
 		<MkInput v-model="moveToAccount" manual-save>
 			<template #prefix><i class="ti ti-plane-departure"></i></template>
-			<template #label>{{ i18n.ts.moveToLabel }}</template>
+			<template #label>{{ i18n.ts._accountMigration.moveToLabel }}</template>
 		</MkInput>
 	</FormSection>
-	<FormInfo warn>{{ i18n.ts.moveAccountDescription }}</FormInfo>
+	<FormInfo warn>{{ i18n.ts._accountMigration.moveAccountDescription }}</FormInfo>
 
 	<FormSection>
-		<template #label>{{ i18n.ts.moveFrom }}</template>
+		<template #label>{{ i18n.ts._accountMigration.moveFrom }}</template>
 		<MkInput v-model="accountAlias" manual-save>
 			<template #prefix><i class="ti ti-plane-arrival"></i></template>
-			<template #label>{{ i18n.ts.moveFromLabel }}</template>
+			<template #label>{{ i18n.ts._accountMigration.moveFromLabel }}</template>
 		</MkInput>
 	</FormSection>
-	<FormInfo warn>{{ i18n.ts.moveFromDescription }}</FormInfo>
+	<FormInfo warn>{{ i18n.ts._accountMigration.moveFromDescription }}</FormInfo>
 </div>
 </template>
 
@@ -60,7 +60,7 @@ watch(moveToAccount, async () => {
 });
 
 definePageMetadata({
-	title: i18n.ts.migration,
+	title: i18n.ts.accountMigration,
 	icon: 'ti ti-plane',
 });
 </script>
-- 
GitLab