NoTranslationsBundled error when dynamically changing language #9563
-
Bug DescriptionWhen dynamically changing the language with Reproducing this error can be done with a minimal setup, which includes a Cargo.toml src/ui.slint slint_issue.po build.rs This build location follows what is described in the docs and crate given my src/main.rs According to slint::select_bundled_translation, pressing the button in Despite what the error tells me, I know that the These are the language and translation I specified in poedit. Stack backtraceReproducible Code (if applicable)Environment Details
Product ImpactI am currently testing these features out before building my app. I need to be able to use multiple languages as it will be distributed to a wide variety of people. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
I think I've spotted the problem: This macro re-compiles the code again, without the bundle translations. What need to be done here is to use |
Beta Was this translation helpful? Give feedback.
I think I've spotted the problem:
This macro re-compiles the code again, without the bundle translations.
What need to be done here is to use
slint::include_modules!macro instead.