Skip to content

Localization not working when compiling to WASM #757

@JoshMarkF

Description

@JoshMarkF

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions