mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 15:15:24 +00:00
feat: AI translations at release, 7 new languages and regional fallback
This commit is contained in:
1 parent
6873bc92bb
commit
874ad9f4fd
11 files changed
+356
-134
No files matched your search
@@ -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 })),
|
||||
];
|
||||
Reference in new issue
Block a user