Skip to content

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

Description

@breard-r

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions