Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions apps/app/src/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@ import ja from "./locales/ja";
import zh from "./locales/zh";
import vi from "./locales/vi";
import ptBR from "./locales/pt-BR";
import th from "./locales/th";
import { LANGUAGE_PREF_KEY } from "../app/constants";

/**
* Supported languages
*/
export type Language = "en" | "ja" | "zh" | "vi" | "pt-BR";
export type Language = "en" | "ja" | "zh" | "vi" | "pt-BR" | "th";
export type Locale = Language;

/**
* All supported languages - single source of truth
*/
export const LANGUAGES: Language[] = ["en", "ja", "zh", "vi", "pt-BR"];
export const LANGUAGES: Language[] = ["en", "ja", "zh", "vi", "pt-BR", "th"];

/**
* Language options for UI - single source of truth
Expand All @@ -26,6 +27,7 @@ export const LANGUAGE_OPTIONS = [
{ value: "zh" as Language, label: "简体中文", nativeName: "简体中文" },
{ value: "vi" as Language, label: "Vietnamese", nativeName: "Tiếng Việt" },
{ value: "pt-BR" as Language, label: "Portuguese (BR)", nativeName: "Português (BR)" },
{ value: "th" as Language, label: "ไทย", nativeName: "ไทย" },
] as const;

/**
Expand All @@ -37,6 +39,7 @@ const TRANSLATIONS: Record<Language, Record<string, string>> = {
zh,
vi,
"pt-BR": ptBR,
th,
};

/**
Expand Down
Loading
Loading