Conversation
Added react-i18next library for internationalization. Created a i18n file to organize internationalization and added English and Brazilian Portuguese translations. Added translation labels in almost all texts in the components.
|
@Neitsch the PR that you asked for! Tell me what you think. |
|
Hi Caio, thank you so much for the PR! I think instead of using translate()(...) we can wrap the top level component in a i18nProvider (https://react.i18next.com/components/i18nextprovider.html) and then get { t } from this.context. I'll give that a shot tomorrow. Other than that looks really good. Thank you! |
I added a i18n library (react-i18next) and created the base structure to make the internationalization.
I also updated almost all the texts to the new i18n pattern and translated the file to Brazilian Portuguese.
I also added i18n as a feature of the boilerplate.