diff options
| author | GitHub Action <[email protected]> | 2026-01-28 14:11:30 +0000 |
|---|---|---|
| committer | GitHub Action <[email protected]> | 2026-01-28 14:11:30 +0000 |
| commit | 4f60ea61080baecdb9d14911a0fe82bfb96f0a98 (patch) | |
| tree | 3589b9064015f99bfd51bc122958d75fab5c35ec /packages | |
| parent | 775d28802720121341c0228596496aa8e25e7189 (diff) | |
| download | opencode-4f60ea61080baecdb9d14911a0fe82bfb96f0a98.tar.gz opencode-4f60ea61080baecdb9d14911a0fe82bfb96f0a98.zip | |
chore: generate
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/app/src/context/language.tsx | 35 |
1 files changed, 33 insertions, 2 deletions
diff --git a/packages/app/src/context/language.tsx b/packages/app/src/context/language.tsx index b83800ded..1b93c9b05 100644 --- a/packages/app/src/context/language.tsx +++ b/packages/app/src/context/language.tsx @@ -34,12 +34,43 @@ import { dict as uiNo } from "@opencode-ai/ui/i18n/no" import { dict as uiBr } from "@opencode-ai/ui/i18n/br" import { dict as uiTh } from "@opencode-ai/ui/i18n/th" -export type Locale = "en" | "zh" | "zht" | "ko" | "de" | "es" | "fr" | "da" | "ja" | "pl" | "ru" | "ar" | "no" | "br" | "th" +export type Locale = + | "en" + | "zh" + | "zht" + | "ko" + | "de" + | "es" + | "fr" + | "da" + | "ja" + | "pl" + | "ru" + | "ar" + | "no" + | "br" + | "th" type RawDictionary = typeof en & typeof uiEn type Dictionary = i18n.Flatten<RawDictionary> -const LOCALES: readonly Locale[] = ["en", "zh", "zht", "ko", "de", "es", "fr", "da", "ja", "pl", "ru", "ar", "no", "br", "th"] +const LOCALES: readonly Locale[] = [ + "en", + "zh", + "zht", + "ko", + "de", + "es", + "fr", + "da", + "ja", + "pl", + "ru", + "ar", + "no", + "br", + "th", +] function detectLocale(): Locale { if (typeof navigator !== "object") return "en" |
