react-boilerplate / react-boilerplate-cra-template

:fire: Setup Create React App with React Boilerplate. Highly scalable & Best DX & Performance Focused & Best practices.
https://react-boilerplate.github.io/react-boilerplate-cra-template/
MIT License
1.87k stars 393 forks source link

i18n files #120

Closed farmanalibhatti closed 3 years ago

farmanalibhatti commented 3 years ago

i18n is not working properly. I always get same English whenever I convert to any other language. For example, when I convert to Russian, I get same English words.

farmanalibhatti commented 3 years ago

Folder structure locales/en locales/ru

mdskrumi commented 3 years ago

https://github.com/react-boilerplate/react-boilerplate-cra-template/blob/master/src/locales/i18n.ts

Here, import ru from './ru/translation.json';

export const translationsJson = { en: { translation: en, }, de: { translation: de, }, ru: { translation: ru, }, };