i18n: add French (fr) locale

This commit is contained in:
Benoît Eveillard
2025-12-22 09:46:28 +01:00
parent 451dd0327f
commit 489c465599
3 changed files with 48 additions and 0 deletions
+2
View File
@@ -2,6 +2,7 @@ import type {Language} from './languages.js';
// Static imports for all translation files
import enTranslations from './locales/en.json' with {type: 'json'};
import nlTranslations from './locales/nl.json' with {type: 'json'};
import frTranslations from './locales/fr.json' with {type: 'json'};
export {
SUPPORTED_LANGUAGES,
@@ -29,6 +30,7 @@ export interface Translations {
const translationsMap: Record<string, Translations> = {
en: enTranslations,
nl: nlTranslations,
fr: frTranslations,
};
// In-memory cache for loaded translations