feat(i18n): add French language support and enhance localization
All checks were successful
Deploy to production / deploy (push) Successful in 2m48s

- Introduced French as a supported language across the application, updating locale files and adding translations for various components.
- Enhanced language handling logic to accommodate French, ensuring proper detection and fallback mechanisms.
- Updated UI elements to include French language options, improving accessibility for French-speaking users.
- Refactored SEO handling to include French in hreflang links, enhancing search engine indexing for multilingual content.
- Added new scripts for managing French translations and ensuring consistency across language files.
This commit is contained in:
Torsten Schulz (local)
2026-04-07 18:04:03 +02:00
parent f715c6125d
commit f7030bbabe
56 changed files with 5220 additions and 175 deletions

View File

@@ -144,7 +144,7 @@ export const loginUser = async ({ username, password }) => {
const mappedParams = params.map(param => {
return { 'name': param.paramType.description, 'value': param.value };
});
const uiLocaleCodes = ['de', 'en', 'ceb', 'es'];
const uiLocaleCodes = ['de', 'en', 'ceb', 'es', 'fr'];
const langEntry = mappedParams.find((p) => p.name === 'language');
if (langEntry?.value && !uiLocaleCodes.includes(langEntry.value)) {
const idNum = parseInt(langEntry.value, 10);