mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
i18n(client): add Spanish, French, Italian, and Polish locales (#811)
* i18n(client): add Spanish, French, Italian, and Polish locales Add locale catalogs for Spanish, French, Italian, and Polish. Update locale types, Crowdin configuration, documentation, and test suites to support the expanded language options. * i18n(client): sync Spanish, French, Italian, and Polish locale keys Update Spanish, French, Italian, and Polish translation catalogs to include key additions for notification preferences, user management, and file naming settings. * fix(client): correct expanded locale translations
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
export const SUPPORTED_LOCALES = ["en", "de", "nl", "pt", "sl"] as const;
|
||||
export const SUPPORTED_LOCALES = ["en", "de", "es", "fr", "it", "nl", "pl", "pt", "sl"] as const;
|
||||
export type Locale = (typeof SUPPORTED_LOCALES)[number];
|
||||
|
||||
export const DEFAULT_LOCALE: Locale = "en";
|
||||
@@ -7,7 +7,11 @@ export const DEFAULT_LOCALE: Locale = "en";
|
||||
export const LOCALE_LABELS: Record<Locale, string> = {
|
||||
en: "English",
|
||||
de: "Deutsch",
|
||||
es: "Español",
|
||||
fr: "Français",
|
||||
it: "Italiano",
|
||||
nl: "Nederlands",
|
||||
pl: "Polski",
|
||||
pt: "Português",
|
||||
sl: "Slovenščina",
|
||||
};
|
||||
@@ -15,7 +19,11 @@ export const LOCALE_LABELS: Record<Locale, string> = {
|
||||
export const LOCALE_DIRECTIONS: Record<Locale, "ltr" | "rtl"> = {
|
||||
en: "ltr",
|
||||
de: "ltr",
|
||||
es: "ltr",
|
||||
fr: "ltr",
|
||||
it: "ltr",
|
||||
nl: "ltr",
|
||||
pl: "ltr",
|
||||
pt: "ltr",
|
||||
sl: "ltr",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user