Skip to content

Commit 4f60ea6

Browse files
committed
chore: generate
1 parent 775d288 commit 4f60ea6

1 file changed

Lines changed: 33 additions & 2 deletions

File tree

packages/app/src/context/language.tsx

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,43 @@ import { dict as uiNo } from "@opencode-ai/ui/i18n/no"
3434
import { dict as uiBr } from "@opencode-ai/ui/i18n/br"
3535
import { dict as uiTh } from "@opencode-ai/ui/i18n/th"
3636

37-
export type Locale = "en" | "zh" | "zht" | "ko" | "de" | "es" | "fr" | "da" | "ja" | "pl" | "ru" | "ar" | "no" | "br" | "th"
37+
export type Locale =
38+
| "en"
39+
| "zh"
40+
| "zht"
41+
| "ko"
42+
| "de"
43+
| "es"
44+
| "fr"
45+
| "da"
46+
| "ja"
47+
| "pl"
48+
| "ru"
49+
| "ar"
50+
| "no"
51+
| "br"
52+
| "th"
3853

3954
type RawDictionary = typeof en & typeof uiEn
4055
type Dictionary = i18n.Flatten<RawDictionary>
4156

42-
const LOCALES: readonly Locale[] = ["en", "zh", "zht", "ko", "de", "es", "fr", "da", "ja", "pl", "ru", "ar", "no", "br", "th"]
57+
const LOCALES: readonly Locale[] = [
58+
"en",
59+
"zh",
60+
"zht",
61+
"ko",
62+
"de",
63+
"es",
64+
"fr",
65+
"da",
66+
"ja",
67+
"pl",
68+
"ru",
69+
"ar",
70+
"no",
71+
"br",
72+
"th",
73+
]
4374

4475
function detectLocale(): Locale {
4576
if (typeof navigator !== "object") return "en"

0 commit comments

Comments
 (0)