mirror of
https://github.com/wger-project/flutter.git
synced 2026-11-28 17:08:29 +01:00
Adds a per-user language override in Settings that takes precedence over the system locale, fixing #439. Selecting "System default" clears the override and falls back to the existing localeListResolutionCallback. Also declares CFBundleLocalizations in the iOS Info.plist so iOS 16+ users get the native per-app language picker (Settings → wger → Language) as an alternative entry point. Implementation mirrors the existing themeMode flow on UserProvider, with the selected locale persisted in SharedPreferences under PREFS_USER_LOCALE and matched against AppLocalizations.supportedLocales on load to preserve script-bearing locales (zh_Hant, pt_BR, ...).