mirror of
https://github.com/different-ai/openwork
synced 2026-04-25 17:15:34 +02:00
feat(i18n): add Catalan locale (#1450)
* feat(i18n): add Catalan locale Give Catalan speakers full UI coverage while keeping locale parity with the English source and existing locale audits. * fix(i18n): align Catalan product terminology Use the requested in-product terms for workspace, paquet, and sandbox while keeping the Catalan locale consistent around runtime, host, and deep link wording. * canvis de wording
This commit is contained in:
@@ -6,19 +6,20 @@ import vi from "./locales/vi";
|
||||
import ptBR from "./locales/pt-BR";
|
||||
import th from "./locales/th";
|
||||
import fr from "./locales/fr";
|
||||
import ca from "./locales/ca";
|
||||
import es from "./locales/es";
|
||||
import { LANGUAGE_PREF_KEY } from "../app/constants";
|
||||
|
||||
/**
|
||||
* Supported languages
|
||||
*/
|
||||
export type Language = "en" | "ja" | "zh" | "vi" | "pt-BR" | "th" | "fr" | "es";
|
||||
export type Language = "en" | "ja" | "zh" | "vi" | "pt-BR" | "th" | "fr" | "ca" | "es";
|
||||
export type Locale = Language;
|
||||
|
||||
/**
|
||||
* All supported languages - single source of truth
|
||||
*/
|
||||
export const LANGUAGES: Language[] = ["en", "ja", "zh", "vi", "pt-BR", "th", "fr", "es"];
|
||||
export const LANGUAGES: Language[] = ["en", "ja", "zh", "vi", "pt-BR", "th", "fr", "ca", "es"];
|
||||
|
||||
/**
|
||||
* Language options for UI - single source of truth
|
||||
@@ -31,7 +32,8 @@ export const LANGUAGE_OPTIONS = [
|
||||
{ value: "pt-BR" as Language, label: "Portuguese (BR)", nativeName: "Português (BR)" },
|
||||
{ value: "th" as Language, label: "ไทย", nativeName: "ไทย" },
|
||||
{ value: "fr" as Language, label: "French", nativeName: "Français" },
|
||||
{ value: "es" as Language, label: "Spanish", nativeName: "Español" },
|
||||
{ value: "ca" as Language, label: "Català", nativeName: "Català" },
|
||||
{ value: "es" as Language, label: "Español", nativeName: "Español" },
|
||||
] as const;
|
||||
|
||||
/**
|
||||
@@ -45,6 +47,7 @@ const TRANSLATIONS: Record<Language, Record<string, string>> = {
|
||||
"pt-BR": ptBR,
|
||||
th,
|
||||
fr,
|
||||
ca,
|
||||
es,
|
||||
};
|
||||
|
||||
|
||||
2082
apps/app/src/i18n/locales/ca.ts
Normal file
2082
apps/app/src/i18n/locales/ca.ts
Normal file
File diff suppressed because it is too large
Load Diff
@@ -7,4 +7,5 @@ export { default as zh } from "./zh";
|
||||
export { default as vi } from "./vi";
|
||||
export { default as ptBR } from "./pt-BR";
|
||||
export { default as fr } from "./fr";
|
||||
export { default as ca } from "./ca";
|
||||
export { default as es } from "./es";
|
||||
|
||||
Reference in New Issue
Block a user