Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a way to use dioxus-i18n in tests #5

Open
breard-r opened this issue Oct 23, 2024 · 0 comments
Open

Add a way to use dioxus-i18n in tests #5

breard-r opened this issue Oct 23, 2024 · 0 comments

Comments

@breard-r
Copy link

Hello,

Currently, it seems impossible to use dioxus-i18n in tests. Trying to use use_init_i18n in a test function results in a panic with the following message:

to be in a dioxus runtime

Not initializing it obviously fails too.

It would be nice to have a way to test the translations.

Example use case: An internationalized Dioxus app that need to display an unsigned integer in letters and therefore need to test that, for each supported language, the algorithm converts the integer into the correct words.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant