-
Notifications
You must be signed in to change notification settings - Fork 1.1k
How to test i18next #390
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
Comments
Approaches to testing translated components vary, but these are popular:
|
Hey @josoroma, please join one of the support channels so we can better help. Issues should be used for bug reporting and feature requests. ❓ Support Forums
|
We should probably have an article about this on the website. |
I can take a stab at it next week. It should probably go in the examples section |
I actually realized we already have an example for Rect Intl. https://testing-library.com/docs/example-react-intl Do you think it's enough? |
I've never actually had to do what is described in that example, not sure what environment it is referring to. |
Yeah, I vaguely remember someone contributing that. I've never had to do that either though. |
I've pushed this example, because I had to test the use of it in a production project. |
I can make a PR with this updates, and maybe add a linguiJs example. What do you think? |
@viniciusavieira go ahead and get started with a PR if you have an idea. I think we should have pretty comprehensive docs for all these ideas since how to test localized content is one of the most-asked questions. |
This codesandbox has a functional example of i18next test, not sure if it follow all convetions of this lib, since this was my first contact, I've checked they're docs and adapted as necessary: |
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
I was wondering how to test the
NEXT
text here:The text was updated successfully, but these errors were encountered: