Closed TimBoettcher closed 1 year ago
I found the solution, which has to do with rust-embed
:
rust-embed = { version = "6", features = [ "debug-embed" ] }
You might want to add this to the documentation; in any case, i18n-embed
works even in a WASM context.
@TimBoettcher I'd like to add a WASM example, would be happy for contribution :slightly_smiling_face:
Consider the following example:
I use trunk to build and bundle this into a WASM application, but unfortunately I get the following message in both above cases:
No localization for id: "hello"
I converted this to a native application and confirmed that it worked as it should (displaying
Hallo, Welt!
) in the desktop context, but I'm at a loss what could possibly be causing this to fail on the WASM target.Do you have any ideas?