From f7eef546a6e3862778fb393f4e28abc6f1367eef Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 14 Dec 2023 17:05:29 +0900 Subject: [PATCH] fix(frontend): fix missing localization --- locales/index.d.ts | 1 + locales/ja-JP.yml | 1 + packages/frontend/src/pages/settings/emoji-picker.vue | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/locales/index.d.ts b/locales/index.d.ts index 40837b05a..48c3daf05 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -1181,6 +1181,7 @@ export interface Locale { "code": string; "reloadRequiredToApplySettings": string; "remainingN": string; + "overwriteContentConfirm": string; "_announcement": { "forExistingUsers": string; "forExistingUsersDescription": string; diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 3ad27910e..daa6a3203 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1178,6 +1178,7 @@ doReaction: "リアクションする" code: "コード" reloadRequiredToApplySettings: "設定の反映にはリロードが必要です。" remainingN: "残り: {n}" +overwriteContentConfirm: "現在の内容に上書きされますがよろしいですか?" _announcement: forExistingUsers: "既存ユーザーのみ" diff --git a/packages/frontend/src/pages/settings/emoji-picker.vue b/packages/frontend/src/pages/settings/emoji-picker.vue index f3f974a96..7e7bf9bd1 100644 --- a/packages/frontend/src/pages/settings/emoji-picker.vue +++ b/packages/frontend/src/pages/settings/emoji-picker.vue @@ -167,7 +167,7 @@ function previewEmoji(ev: MouseEvent) { async function copyFromPinnedEmojis() { const { canceled } = await os.confirm({ type: 'warning', - text: 'a', + text: i18n.ts.overwriteContentConfirm, }); if (canceled) { @@ -180,7 +180,7 @@ async function copyFromPinnedEmojis() { async function copyFromPinnedEmojisForReaction() { const { canceled } = await os.confirm({ type: 'warning', - text: 'a', + text: i18n.ts.overwriteContentConfirm, }); if (canceled) {