feat: AI translations at release, 7 new languages and regional fallback

This commit is contained in:
LukeGus committed 2026-10-11 00:19:05 -05:00
1 parent 6873bc92bb
commit 874ad9f4fd
11 files changed
+356 -134

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
import languages from "../locales/languages.json";
/** One translated language. The translator in Termix-Registry keeps a copy of this list. */
export interface Language {
code: string;
file: string;
name: string;
label: string;
}
export const TRANSLATED_LANGUAGES: readonly Language[] = languages;
/** Every language the app can show, English first, for language pickers. */
export const LANGUAGES: readonly { code: string; label: string }[] = [
{ code: "en", label: "English" },
...TRANSLATED_LANGUAGES.map(({ code, label }) => ({ code, label })),
];