summaryrefslogtreecommitdiffhomepage
path: root/packages/app/src/context/language.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/app/src/context/language.tsx')
-rw-r--r--packages/app/src/context/language.tsx20
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/app/src/context/language.tsx b/packages/app/src/context/language.tsx
index bf081996b..22f7bcca1 100644
--- a/packages/app/src/context/language.tsx
+++ b/packages/app/src/context/language.tsx
@@ -76,6 +76,26 @@ const LOCALES: readonly Locale[] = [
"th",
]
+type ParityKey = "command.session.previous.unseen" | "command.session.next.unseen"
+const PARITY_CHECK: Record<Exclude<Locale, "en">, Record<ParityKey, string>> = {
+ zh,
+ zht,
+ ko,
+ de,
+ es,
+ fr,
+ da,
+ ja,
+ pl,
+ ru,
+ ar,
+ no,
+ br,
+ th,
+ bs,
+}
+void PARITY_CHECK
+
function detectLocale(): Locale {
if (typeof navigator !== "object") return "en"