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:
Jan Carbonell
2026-04-15 18:30:51 -07:00
committed by GitHub
parent c3938e0994
commit e232aba925
4 changed files with 2090 additions and 4 deletions

View File

@@ -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,
};

File diff suppressed because it is too large Load Diff

View File

@@ -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";

View File

@@ -25,7 +25,7 @@ const REPO_ROOT = resolve(__dirname, "..");
const LOCALES_DIR = join(REPO_ROOT, "apps/app/src/i18n/locales");
const APP_SRC = join(REPO_ROOT, "apps/app/src");
const LOCALES = ["ja", "zh", "vi", "pt-BR", "th", "fr", "es"];
const LOCALES = ["ja", "zh", "vi", "pt-BR", "th", "fr", "ca", "es"];
const EN_FILE = join(LOCALES_DIR, "en.ts");
const mode = process.argv[2] ?? "--all";