Skip to content

Commit

Permalink
feat(frontend): "Moderation Note" ,"Add moderation note" をローカライズ可能に (#…
Browse files Browse the repository at this point in the history
…11819)

* feat 11818

* update CHANGELOG

---------

Co-authored-by: syuilo <[email protected]>
  • Loading branch information
mappi-pr and syuilo authored Sep 12, 2023
1 parent 3456680 commit d869481
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
- リアクションの表示サイズをより大きくできるように
- ノート詳細ページ読み込み時のパフォーマンスを改善
- タイムラインでリスト/アンテナ選択時のパフォーマンスを改善
- 「Moderation note」、「Add moderation note」をローカライズできるように
- 新しい実績を追加
- Fix: サーバー情報画面(`/instance-info/{domain}`)でブロックができないのを修正
- Fix: 未読のお知らせの「わかった」をクリック・タップしてもその場で「わかった」が消えない問題を修正
Expand Down
2 changes: 2 additions & 0 deletions locales/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,8 @@ export interface Locale {
"totpDescription": string;
"moderator": string;
"moderation": string;
"moderationNote": string;
"addModerationNote": string;
"nUsersMentioned": string;
"securityKeyAndPasskey": string;
"securityKey": string;
Expand Down
2 changes: 2 additions & 0 deletions locales/ja-JP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,8 @@ totp: "認証アプリ"
totpDescription: "認証アプリを使ってワンタイムパスワードを入力"
moderator: "モデレーター"
moderation: "モデレーション"
moderationNote: "モデレーションノート"
addModerationNote: "モデレーションノートを追加する"
nUsersMentioned: "{n}人が投稿"
securityKeyAndPasskey: "セキュリティキー・パスキー"
securityKey: "セキュリティキー"
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/admin-user.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>

<!--
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/pages/user/home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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}">
Expand Down

0 comments on commit d869481

Please sign in to comment.