Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/LanguageModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const languages = [
{ code: "nl", name: "Nederlands", short: "NL" },
{ code: "fr", name: "Français", short: "FR" },
{ code: "es", name: "Español", short: "ES" },
{ code: "it", name: "Italiano", short: "IT" },
];

let show = false;
Expand Down
3 changes: 3 additions & 0 deletions src/lib/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ register("ru", () => import("./locales/ru.json"));
register("nl", () => import("./locales/nl.json"));
register("fr", () => import("./locales/fr.json"));
register("es", () => import("./locales/es.json"));
register("it", () => import("./locales/it.json"));

export const SUPPORTED_LOCALES = [
"en",
Expand All @@ -19,6 +20,7 @@ export const SUPPORTED_LOCALES = [
"nl",
"fr",
"es",
"it",
] as const;

export function isSupportedLocale(
Expand All @@ -35,6 +37,7 @@ const BROWSER_LOCALE_MAP: Record<string, string> = {
nl: "nl",
fr: "fr",
es: "es",
it: "it",
};

// Smart locale detection (mirrors theme detection pattern)
Expand Down
Loading
Loading