Add logged out translations (#9983)

Add translation for logged in / sub pages
This commit is contained in:
Félix Malfait
2025-02-03 22:00:54 +01:00
committed by GitHub
parent 351e768038
commit 7a0f2f8c0a
46 changed files with 1505 additions and 600 deletions

View File

@ -5,4 +5,10 @@ export const dynamicActivate = async (locale: keyof typeof APP_LOCALES) => {
const { messages } = await import(`../../locales/generated/${locale}.ts`);
i18n.load(locale, messages);
i18n.activate(locale);
try {
localStorage.setItem('locale', locale);
} catch (error) {
// eslint-disable-next-line no-console
console.log('Failed to save locale to localStorage:', error);
}
};