pub(crate) const PW_GATE_KEY_HINT: &str = "docs.password_gate.hint";
pub(crate) const PW_GATE_KEY_IDLE: &str = "docs.password_gate.idle";
pub(crate) const PW_GATE_KEY_BUSY: &str = "docs.password_gate.busy";
pub(crate) const PW_GATE_KEY_ERROR: &str = "docs.password_gate.error";
pub(crate) const PW_GATE_KEY_LABEL: &str = "docs.password_gate.label";
pub(crate) const PW_GATE_KEY_PLACEHOLDER: &str = "docs.password_gate.placeholder";
pub(crate) const PW_GATE_MESSAGES_ZH: [(&str, &str); 6] = [
(PW_GATE_KEY_HINT, "本文受密码保护,输入密码后即可查看内容。"),
(PW_GATE_KEY_IDLE, "解锁"),
(PW_GATE_KEY_BUSY, "验证中…"),
(PW_GATE_KEY_ERROR, "密码错误,请重试。"),
(PW_GATE_KEY_LABEL, "访问密码"),
(PW_GATE_KEY_PLACEHOLDER, "密码"),
];
pub(crate) const PW_GATE_MESSAGES_EN: [(&str, &str); 6] = [
(
PW_GATE_KEY_HINT,
"This article is password protected. Enter the password to read it.",
),
(PW_GATE_KEY_IDLE, "Unlock"),
(PW_GATE_KEY_BUSY, "Verifying…"),
(PW_GATE_KEY_ERROR, "Incorrect password. Please try again."),
(PW_GATE_KEY_LABEL, "Access password"),
(PW_GATE_KEY_PLACEHOLDER, "Password"),
];
pub(crate) const PW_GATE_MESSAGES_JA: [(&str, &str); 6] = [
(
PW_GATE_KEY_HINT,
"この記事のパスワードで保護されています。パスワードを入力すると内容をご覧できます。",
),
(PW_GATE_KEY_IDLE, "ロック解除"),
(PW_GATE_KEY_BUSY, "確認中…"),
(
PW_GATE_KEY_ERROR,
"パスワードが違います。もう一度お試しください。",
),
(PW_GATE_KEY_LABEL, "閲覧パスワード"),
(PW_GATE_KEY_PLACEHOLDER, "パスワード"),
];
pub(crate) const PW_GATE_MESSAGES_KO: [(&str, &str); 6] = [
(
PW_GATE_KEY_HINT,
"이 문서는 비밀번호로 보호되어 있습니다. 비밀번호를 입력해 주세요.",
),
(PW_GATE_KEY_IDLE, "잠금 해제"),
(PW_GATE_KEY_BUSY, "확인 중…"),
(
PW_GATE_KEY_ERROR,
"비밀번호가 올바르지 않습니다. 다시 시도해 주세요.",
),
(PW_GATE_KEY_LABEL, "접속 비밀번호"),
(PW_GATE_KEY_PLACEHOLDER, "비밀번호"),
];
pub(crate) const PW_GATE_LOCALE_TAG_ZH: &str = "zh-CN";
pub(crate) const PW_GATE_LOCALE_TAG_EN: &str = "en-US";
pub(crate) const PW_GATE_LOCALE_TAG_JA: &str = "ja-JP";
pub(crate) const PW_GATE_LOCALE_TAG_KO: &str = "ko-KR";
pub(crate) const LOCALE_TAG_DEFAULT: &str = PW_GATE_LOCALE_TAG_EN;
pub(crate) const LOCALE_LABEL_ZH: &str = "简体中文";
pub(crate) const LOCALE_LABEL_EN: &str = "English";
pub(crate) const LOCALE_LABEL_JA: &str = "日本語";
pub(crate) const LOCALE_LABEL_KO: &str = "한국어";
pub(crate) const LOCALE_TAGS: [(&str, &str); 4] = [
(LOCALE_LABEL_ZH, PW_GATE_LOCALE_TAG_ZH),
(LOCALE_LABEL_EN, PW_GATE_LOCALE_TAG_EN),
(LOCALE_LABEL_JA, PW_GATE_LOCALE_TAG_JA),
(LOCALE_LABEL_KO, PW_GATE_LOCALE_TAG_KO),
];