summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormappi <mappi@mizuiromoon.com>2023-09-12 15:49:18 +0900
committerGitHub <noreply@github.com>2023-09-12 15:49:18 +0900
commitd869481db92dcc9d0ffa6b1da13e46dec8e089f4 (patch)
tree6712611104d24587e7e088f84e263c9f7cdd1012
parent新しい実績を追加 (#11817) (diff)
downloadsharkey-d869481db92dcc9d0ffa6b1da13e46dec8e089f4.tar.gz
sharkey-d869481db92dcc9d0ffa6b1da13e46dec8e089f4.tar.bz2
sharkey-d869481db92dcc9d0ffa6b1da13e46dec8e089f4.zip
feat(frontend): "Moderation Note" ,"Add moderation note" をローカライズ可能に (#11819)
* feat 11818 * update CHANGELOG --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
-rw-r--r--CHANGELOG.md1
-rw-r--r--locales/index.d.ts2
-rw-r--r--locales/ja-JP.yml2
-rw-r--r--packages/frontend/src/pages/admin-user.vue2
-rw-r--r--packages/frontend/src/pages/user/home.vue4
5 files changed, 8 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1cc6b3f0d4..aca2f47551 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -46,6 +46,7 @@
- リアクションの表示サイズをより大きくできるように
- ノート詳細ページ読み込み時のパフォーマンスを改善
- タイムラインでリスト/アンテナ選択時のパフォーマンスを改善
+- 「Moderation note」、「Add moderation note」をローカライズできるように
- 新しい実績を追加
- Fix: サーバー情報画面(`/instance-info/{domain}`)でブロックができないのを修正
- Fix: 未読のお知らせの「わかった」をクリック・タップしてもその場で「わかった」が消えない問題を修正
diff --git a/locales/index.d.ts b/locales/index.d.ts
index 746c51c991..152e2ae811 100644
--- a/locales/index.d.ts
+++ b/locales/index.d.ts
@@ -420,6 +420,8 @@ export interface Locale {
"totpDescription": string;
"moderator": string;
"moderation": string;
+ "moderationNote": string;
+ "addModerationNote": string;
"nUsersMentioned": string;
"securityKeyAndPasskey": string;
"securityKey": string;
diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml
index 3cde23ca91..1a9a7a3ec4 100644
--- a/locales/ja-JP.yml
+++ b/locales/ja-JP.yml
@@ -417,6 +417,8 @@ totp: "認証アプリ"
totpDescription: "認証アプリを使ってワンタイムパスワードを入力"
moderator: "モデレーター"
moderation: "モデレーション"
+moderationNote: "モデレーションノート"
+addModerationNote: "モデレーションノートを追加する"
nUsersMentioned: "{n}人が投稿"
securityKeyAndPasskey: "セキュリティキー・パスキー"
securityKey: "セキュリティキー"
diff --git a/packages/frontend/src/pages/admin-user.vue b/packages/frontend/src/pages/admin-user.vue
index f8535e46be..1d18819f1d 100644
--- a/packages/frontend/src/pages/admin-user.vue
+++ b/packages/frontend/src/pages/admin-user.vue
@@ -52,7 +52,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</div>
<MkTextarea v-model="moderationNote" manualSave>
- <template #label>Moderation note</template>
+ <template #label>{{ i18n.ts.moderationNote }}</template>
</MkTextarea>
<!--
diff --git a/packages/frontend/src/pages/user/home.vue b/packages/frontend/src/pages/user/home.vue
index bef1bda7ba..a8720e1050 100644
--- a/packages/frontend/src/pages/user/home.vue
+++ b/packages/frontend/src/pages/user/home.vue
@@ -57,10 +57,10 @@ SPDX-License-Identifier: AGPL-3.0-only
</div>
<div v-if="iAmModerator" class="moderationNote">
<MkTextarea v-if="editModerationNote || (moderationNote != null && moderationNote !== '')" v-model="moderationNote" manualSave>
- <template #label>Moderation note</template>
+ <template #label>{{ i18n.ts.moderationNote }}</template>
</MkTextarea>
<div v-else>
- <MkButton small @click="editModerationNote = true">Add moderation note</MkButton>
+ <MkButton small @click="editModerationNote = true">{{ i18n.ts.addModerationNote }}</MkButton>
</div>
</div>
<div v-if="isEditingMemo || memoDraft" class="memo" :class="{'no-memo': !memoDraft}">