Locales
Locales are located here: src/locales/[code]

To add a new translation file, create a new folder in locales and name it as a language code (ex. 'ru' or 'en'). We use react-i18next for localization, so explore their docs first if you want to contribute.
To translate a page, do the following:
1. Find a string to translate

2. Add useTranslation hook to the component
useTranslation hook to the component
3. Add a key to the locale file

Here we follow the files path: pages/Search -> noResultsText . Add new keys to theirs components! If a key is being used a lot in the project, add it to common section.
4. Replace string with translation

Last updated
Was this helpful?