mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
feat(client): add Portuguese language localization (#688)
Expose Portuguese through shared locale preferences and keep the catalog synchronized with current English messages. Use keyed interpolation so series headings follow each language’s natural word order. Closes #673 Co-authored-by: neon <18559658+neonsolstice@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
export const SUPPORTED_LOCALES = ["en", "de", "nl", "sl"] as const;
|
||||
export const SUPPORTED_LOCALES = ["en", "de", "nl", "pt", "sl"] as const;
|
||||
export type Locale = (typeof SUPPORTED_LOCALES)[number];
|
||||
|
||||
export const DEFAULT_LOCALE: Locale = "en";
|
||||
@@ -8,6 +8,7 @@ export const LOCALE_LABELS: Record<Locale, string> = {
|
||||
en: "English",
|
||||
de: "Deutsch",
|
||||
nl: "Nederlands",
|
||||
pt: "Português",
|
||||
sl: "Slovenščina",
|
||||
};
|
||||
|
||||
@@ -15,6 +16,7 @@ export const LOCALE_DIRECTIONS: Record<Locale, "ltr" | "rtl"> = {
|
||||
en: "ltr",
|
||||
de: "ltr",
|
||||
nl: "ltr",
|
||||
pt: "ltr",
|
||||
sl: "ltr",
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user