Skip to content

Commit

Permalink
メッセージをもっと丁寧にした
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkokari-gtyih committed Dec 29, 2023
1 parent 00f03cd commit b73b816
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
4 changes: 3 additions & 1 deletion locales/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ export interface Locale {
"blockConfirm": string;
"unblockConfirm": string;
"suspendConfirm": string;
"approveConfirm": string;
"registerApproveConfirm": string;
"registerApproveConfirmDescription": string;
"unsuspendConfirm": string;
"selectList": string;
"editList": string;
Expand Down Expand Up @@ -878,6 +879,7 @@ export interface Locale {
"off": string;
"emailRequiredForSignup": string;
"approvalRequiredForSignup": string;
"signupPendingApprovals": string;
"unread": string;
"filter": string;
"controlPanel": string;
Expand Down
4 changes: 3 additions & 1 deletion locales/ja-JP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ unsuspend: "解凍"
blockConfirm: "ブロックしますか?"
unblockConfirm: "ブロック解除しますか?"
suspendConfirm: "凍結しますか?"
approveConfirm: "登録を承認しますか?"
registerApproveConfirm: "登録を承認しますか?"
registerApproveConfirmDescription: "この操作は取り消せません。承認後、このユーザーに登録が承認された旨が記載されたメールが送信されます。"
unsuspendConfirm: "解凍しますか?"
selectList: "リストを選択"
editList: "リストを編集"
Expand Down Expand Up @@ -875,6 +876,7 @@ on: "オン"
off: "オフ"
emailRequiredForSignup: "アカウント登録にメールアドレスを必須にする"
approvalRequiredForSignup: "アカウント登録を承認制にする"
signupPendingApprovals: "アカウント登録の承認"
unread: "未読"
filter: "フィルタ"
controlPanel: "コントロールパネル"
Expand Down
5 changes: 3 additions & 2 deletions packages/frontend/src/components/MkApprovalUser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<div>{{ email }}</div>
</div>
<div>
<div :class="$style.label">Reason</div>
<div :class="$style.label">{{ i18n.ts.registerReason }}</div>
<div>{{ reason }}</div>
</div>
</div>
Expand Down Expand Up @@ -89,7 +89,8 @@ async function deleteAccount() {
async function approveAccount() {
const confirm = await os.confirm({
type: 'warning',
text: i18n.ts.approveConfirm,
title: i18n.ts.registerApproveConfirm,
text: i18n.ts.registerApproveConfirmDescription,
});
if (confirm.canceled) return;
await os.api('admin/approve-user', { userId: props.user.id });
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/admin/approvals.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const headerActions = computed(() => []);
const headerTabs = computed(() => []);

definePageMetadata(computed(() => ({
title: i18n.ts.approvals,
title: i18n.ts.signupPendingApprovals,
icon: 'ti ti-user-check',
})));
</script>
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/admin/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const menuDef = computed(() => [{
active: currentPage.value?.route.name === 'invites',
}, {
icon: 'ti ti-user-check',
text: i18n.ts.approvals,
text: i18n.ts.signupPendingApprovals,
to: '/admin/approvals',
active: currentPage.value?.route.name === 'approvals',
}, {
Expand Down

0 comments on commit b73b816

Please sign in to comment.