Locales
Last updated
Was this helpful?
Last updated
Was this helpful?
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:
useTranslation
hook to the componentHere 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.