From 1f38f581170e1818640153f1fa0e36dcb8acd3ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=BE=E3=81=A3=E3=81=A1=E3=82=83=E3=81=A8=E3=83=BC?= =?UTF-8?q?=E3=81=AB=E3=82=85?= <17376330+u1-liquid@users.noreply.github.com> Date: Sun, 14 Apr 2024 11:38:00 +0900 Subject: [PATCH] =?UTF-8?q?enhance(frontend/2fa):=20=E4=BA=8C=E8=A6=81?= =?UTF-8?q?=E7=B4=A0=E8=AA=8D=E8=A8=BC=E3=81=AE=E3=83=90=E3=83=83=E3=82=AF?= =?UTF-8?q?=E3=82=A2=E3=83=83=E3=83=97=E3=82=B3=E3=83=BC=E3=83=89=E3=82=92?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=E4=BF=83=E3=81=99=20(MisskeyIO#611)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/en-US.yml | 9 ++-- locales/index.d.ts | 15 ++++++ locales/ja-JP.yml | 3 ++ locales/ko-KR.yml | 9 ++-- packages/frontend/src/components/MkDialog.vue | 53 ++++++++++++++----- packages/frontend/src/os.ts | 6 +++ .../src/pages/settings/2fa.qrdialog.vue | 32 +++++++---- packages/frontend/src/pages/settings/2fa.vue | 6 +-- 8 files changed, 100 insertions(+), 33 deletions(-) diff --git a/locales/en-US.yml b/locales/en-US.yml index 5609803ff4..d23c167c47 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -2014,9 +2014,12 @@ _2fa: renewTOTPCancel: "Cancel" checkBackupCodesBeforeCloseThisWizard: "Before you close this window, please note the following backup codes." backupCodes: "Backup codes" - backupCodesDescription: "You can use these codes to gain access to your account in case of becoming unable to use your two-factor authentificator app. Each can only be used once. Please keep them in a safe place." - backupCodeUsedWarning: "A backup code has been used. Please reconfigure two-factor authentification as soon as possible if you are no longer able to use it." - backupCodesExhaustedWarning: "All backup codes have been used. Should you lose access to your two-factor authentification app, you will be unable to access this account. Please reconfigure two-factor authentification." + backupCodesDescription: "You can use these codes to gain access to your account in case of becoming unable to use your two-factor authenticator app. Each can only be used once. Please keep them in a safe place." + backupCodeUsedWarning: "A backup code has been used. Please reconfigure two-factor authentication as soon as possible if you are no longer able to use it." + backupCodesExhaustedWarning: "All backup codes have been used. Should you lose access to your two-factor authentication app, you will be unable to access this account. Please reconfigure two-factor authentication." + backupCodesSavedConfirmTitle: "Did you save your backup codes?" + backupCodesSavedConfirmDescription: "If you lose both your two-factor authentication app and backup codes, YOU WILL LOSE ACCESS TO YOUR ACCOUNT.\nKeep them safe and secure, and do not share them with anyone.\n\n$[x2 Two-factor authentication settings CANNOT be changed by anyone other than yourself, $[fg.color=red AND THE ADMINISTRATOR CANNOT DISABLE IT EITHER.]]" + backupCodesSavedConfirmChecked: "I have saved my backup codes" howto2fa: "If you are having trouble setting up, please refer to {link}." _permissions: "read:account": "View your account information" diff --git a/locales/index.d.ts b/locales/index.d.ts index f5ba524a06..806dc9af79 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -7856,6 +7856,21 @@ export interface Locale extends ILocale { * バックアップコードが全て使用されました。認証アプリを利用できない場合、これ以上アカウントにアクセスできなくなります。認証アプリを再登録してください。 */ "backupCodesExhaustedWarning": string; + /** + * バックアップコードを保存しましたか? + */ + "backupCodesSavedConfirmTitle": string; + /** + * 二要素認証アプリとバックアップコードの両方を紛失した場合、アカウントにアクセスできなくなります。 + * 誰とも共有せず、適切な方法で保管してください。 + * + * $[x2 二要素認証設定は自分以外の誰にも変更できませんので、$[fg.color=red 運営チームも無効化することはできません。]] + */ + "backupCodesSavedConfirmDescription": string; + /** + * バックアップコードを保存しました + */ + "backupCodesSavedConfirmChecked": string; /** * 設定方法でお困りの際は、{link}を参照してください。 */ diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index ca49714ee7..f9c4c8bbfb 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -2064,6 +2064,9 @@ _2fa: backupCodesDescription: "認証アプリが使用できなくなった場合、以下のバックアップコードを使ってアカウントにアクセスできます。これらのコードは必ず安全な場所に保管してください。各コードは一回だけ使用できます。" backupCodeUsedWarning: "バックアップコードが使用されました。認証アプリが使えなくなっている場合、なるべく早く認証アプリを再設定してください。" backupCodesExhaustedWarning: "バックアップコードが全て使用されました。認証アプリを利用できない場合、これ以上アカウントにアクセスできなくなります。認証アプリを再登録してください。" + backupCodesSavedConfirmTitle: "バックアップコードを保存しましたか?" + backupCodesSavedConfirmDescription: "二要素認証アプリとバックアップコードの両方を紛失した場合、アカウントにアクセスできなくなります。\n誰とも共有せず、適切な方法で保管してください。\n\n$[x2 二要素認証設定は自分以外の誰にも変更できませんので、$[fg.color=red 運営チームも無効化することはできません。]]" + backupCodesSavedConfirmChecked: "バックアップコードを保存しました" howto2fa: "設定方法でお困りの際は、{link}を参照してください。" _permissions: diff --git a/locales/ko-KR.yml b/locales/ko-KR.yml index afe3248c8e..929f800588 100644 --- a/locales/ko-KR.yml +++ b/locales/ko-KR.yml @@ -1992,9 +1992,12 @@ _2fa: renewTOTPCancel: "취소" checkBackupCodesBeforeCloseThisWizard: "이 위자드를 닫기 전에 아래 백업 코드를 확인하십시오" backupCodes: "백업 코드" - backupCodesDescription: "인증 앱을 사용할 수 없게 된 경우 아래 백업 코드를 사용하여 계정에 액세스 할 수 있습니다.이 코드들은 반드시 안전한 장소에 보관하십시오.각 코드는 한 번만 사용할 수 있습니다." - backupCodeUsedWarning: "백업 코드가 사용되었습니다.인증 앱을 사용할 수 없게 된 경우, 조속히 인증 앱을 다시 설정해 주십시오." - backupCodesExhaustedWarning: "백업 코드가 모두 사용되었습니다.인증 앱을 사용할 수 없는 경우 더 이상 계정에 액세스하는 것이 불가능합니다.인증 앱을 다시 등록해 주세요." + backupCodesDescription: "인증 앱을 사용할 수 없게 된 경우 아래 백업 코드를 사용하여 계정에 액세스 할 수 있습니다. 이 코드들은 반드시 안전한 장소에 보관하십시오. 각 코드는 한 번만 사용할 수 있습니다." + backupCodeUsedWarning: "백업 코드가 사용되었습니다. 인증 앱을 사용할 수 없게 된 경우, 조속히 인증 앱을 다시 설정해 주십시오." + backupCodesExhaustedWarning: "백업 코드가 모두 사용되었습니다. 인증 앱을 사용할 수 없는 경우 더 이상 계정에 액세스하는 것이 불가능합니다. 인증 앱을 다시 등록해 주세요." + backupCodesSavedConfirmTitle: "백업 코드를 저장했습니까?" + backupCodesSavedConfirmDescription: "인증 앱과 백업 코드를 모두 분실하면\n계정에 액세스할 수 없게 됩니다.\n자신만이 알 수 있도록 안전한 장소에 보관해 주십시오.\n\n$[x2 2단계 인증 설정은\n본인만이 변경할 수 있으며, $[fg.color=red 운영팀도 해제할 수 없습니다.]]" + backupCodesSavedConfirmChecked: "백업 코드를 저장했습니다" howto2fa: "설정 방법에 대한 자세한 내용은 {link}를 참조하세요." _permissions: "read:account": "계정의 정보를 봅니다" diff --git a/packages/frontend/src/components/MkDialog.vue b/packages/frontend/src/components/MkDialog.vue index a1cecfbc25..b20cfa5748 100644 --- a/packages/frontend/src/components/MkDialog.vue +++ b/packages/frontend/src/components/MkDialog.vue @@ -48,6 +48,7 @@ SPDX-License-Identifier: AGPL-3.0-only + {{ switchLabel }}
{{ i18n.ts.details }}
@@ -58,7 +59,7 @@ SPDX-License-Identifier: AGPL-3.0-only
- {{ okText ?? ((showCancelButton || input || select) ? i18n.ts.ok : i18n.ts.gotIt) }} + {{ okText ?? ((showCancelButton || input || select) ? i18n.ts.ok : i18n.ts.gotIt) }} ({{ sec }}) {{ cancelText ?? i18n.ts.cancel }}
@@ -69,11 +70,12 @@ SPDX-License-Identifier: AGPL-3.0-only diff --git a/packages/frontend/src/pages/settings/2fa.vue b/packages/frontend/src/pages/settings/2fa.vue index 4df544e7f4..2e2377a032 100644 --- a/packages/frontend/src/pages/settings/2fa.vue +++ b/packages/frontend/src/pages/settings/2fa.vue @@ -25,13 +25,11 @@ SPDX-License-Identifier: AGPL-3.0-only + {{ i18n.ts._2fa.whyTOTPOnlyRenew }}
- + {{ i18n.ts._2fa.renewTOTP }} {{ i18n.ts.unregister }}