33 lines
2.0 KiB
Go
33 lines
2.0 KiB
Go
package server
|
|
|
|
func init() {
|
|
for lang, entries := range map[string]map[string]string{
|
|
"ja": {
|
|
"auth.cli_title": "ターミナルからのアクセスを承認",
|
|
"auth.cli_warning": "自分で pages login --oidc を開始した場合のみ続行してください。他人から送られたURLや確認コードを使って承認しないでください。有効期限は開始から5分です。",
|
|
"auth.cli_account": "ログインするアカウント",
|
|
"auth.cli_access": "このCLIはあなたの現在の権限で閲覧・編集できます。専用セッションは設定画面から失効できます。",
|
|
"auth.cli_code": "ターミナルに表示された確認コード",
|
|
"auth.cli_approve": "このCLIを承認する",
|
|
"auth.cli_deny": "拒否する",
|
|
"auth.cli_done": "リクエストは処理済みです。ターミナルに戻って結果を確認してください。この画面は閉じられます。",
|
|
"auth.cli_invalid": "確認コードまたはTOTPが正しくないか、リクエストが失効しました。5回失敗した場合はCLIでログインをやり直してください。",
|
|
},
|
|
"en": {
|
|
"auth.cli_title": "Approve terminal access",
|
|
"auth.cli_warning": "Continue only if you started pages login --oidc yourself. Never approve a URL or code sent by someone else. This request expires five minutes after creation.",
|
|
"auth.cli_account": "Account",
|
|
"auth.cli_access": "This CLI can read and edit using your current permissions. Its separate session can be revoked in Settings.",
|
|
"auth.cli_code": "Confirmation code shown in your terminal",
|
|
"auth.cli_approve": "Approve this CLI",
|
|
"auth.cli_deny": "Deny",
|
|
"auth.cli_done": "This request has been processed. Return to your terminal to check the result. You may close this page.",
|
|
"auth.cli_invalid": "Incorrect confirmation code or TOTP, or the request expired. After five failed attempts, restart login from the CLI.",
|
|
},
|
|
} {
|
|
for key, value := range entries {
|
|
translations[lang][key] = value
|
|
}
|
|
}
|
|
}
|