Skip to content

Vitest + remix-i18next #184

Answered by sergiodxa
depsimon asked this question in Q&A
Apr 5, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

You can set i18next in cimode, https://www.i18next.com/how-to/faq#how-to-handle-with-changes-in-e2e-tests, that will return the key instead of the text, so you don't have to test against a specific language.

Another option is that you set i18next in your tests to load the translations, you could use the resources option in i18next to add pre-bundled translations so you don't have to use a backend.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@depsimon
Comment options

Answer selected by depsimon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants