easy_localization icon indicating copy to clipboard operation
easy_localization copied to clipboard

Localization not working when compiling to WASM

Open JoshMarkF opened this issue 6 months ago • 0 comments

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.

JoshMarkF avatar Jun 10 '25 04:06 JoshMarkF