easy_localization
easy_localization copied to clipboard
Localization not working when compiling to WASM
We have a Flutter web app which we are compiling to WASM. We noticed that localization is not working in this case. Localizations.localeOf(context) detects that the browser is, for example, set for French, and in a regular non-WASM environment, the localization works fine, but when we compile to WASM, we only get English strings.
I have created a small demo app where I can see the issue at: https://github.com/JoshMarkF/LocalizationWasmDemo This has been set up for English and French to demonstrate the issue we are facing.
For reference, we are using Flutter v3.29.3 and easy_localization v3.0.7+1.