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 example with internationalization #19

Open
einatnielsen opened this issue Dec 2, 2019 · 0 comments
Open

Add example with internationalization #19

einatnielsen opened this issue Dec 2, 2019 · 0 comments

Comments

@einatnielsen
Copy link
Contributor

einatnielsen commented Dec 2, 2019

internationalization and localization are means of adapting application to different languages. in context to front-end development it could be internal implementation or 3rd party package. However, In terms of testing we want to explain what're the guidelines to test i18n case.

usually i18n implementation is key/value map for each language, which means inside components we use keys to render reach static text instead of write the actual text. for example:

without i18n:<div>hello world </div>
with I18n: <div>formatMessage('examples.hello.world')</div>

References
https://testing-library.com/docs/example-react-intl

@lidoravitan lidoravitan changed the title Add example with internationalisation Add example with internationalization Feb 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants