feat(i18n) : add personal languages and compact weapon exports
CI / Verify (push) Successful in 1m18s
CI / Build immutable images and deploy (push) Successful in 1m57s

This commit is contained in:
2026-09-14 16:44:44 +07:00 Unverified
parent f214d330f0
commit e0794822b1
72 changed files with 4199 additions and 1011 deletions
+12
View File
@@ -0,0 +1,12 @@
export const languages = [
{ code: "th", name: "ไทย", flag: "/flags/th.svg", numberLocale: "th-TH" },
{ code: "en", name: "English", flag: "/flags/gb.svg", numberLocale: "en-GB" },
] as const;
export type Locale = (typeof languages)[number]["code"];
export const defaultLocale: Locale = "th";
export const localeStorageKey = "buzz-guide-language";
export function isLocale(value: unknown): value is Locale {
return languages.some((language) => language.code === value);
}