feat(localization): expand language support and enhance UI for user settings
All checks were successful
Deploy to production / deploy (push) Successful in 3m0s

- Added support for additional UI locales including Cebuano and Spanish, improving accessibility for a broader user base.
- Updated language selection components in the AppHeader and SettingsWidget to reflect new language options, enhancing user experience.
- Enhanced localization of various UI elements across components, ensuring consistent language representation and improved user engagement.
- Implemented logic to synchronize user language preferences with backend settings, providing a seamless experience when changing languages.
This commit is contained in:
Torsten Schulz (local)
2026-04-02 07:54:44 +02:00
parent ac5d436a36
commit 6d9d69dc10
72 changed files with 1792 additions and 343 deletions

View File

@@ -51,12 +51,26 @@ function getBrowserLanguage() {
return 'en';
}
const SUPPORTED_UI_LOCALES = ['de', 'en', 'ceb', 'es'];
function getInitialAppLanguage() {
try {
const saved = localStorage.getItem('uiLanguage');
if (saved && SUPPORTED_UI_LOCALES.includes(saved)) {
return saved;
}
} catch (_) {
/* ignore */
}
return getBrowserLanguage();
}
const vuetify = createVuetify({
components,
directives,
});
store.dispatch('setLanguage', getBrowserLanguage());
store.dispatch('setLanguage', getInitialAppLanguage());
const app = createApp(App);