React localized application

Language Manager :

https://github.com/helabenkhalfallah/news_kit_frontend/tree/master/app-settings/language

 

Localized Strings :

a. Dico.js => contains used strings inside application in the different supported localization.

b. Localizations.js => contains supported localizations.

c. LocalizedString.js => a localized string object : { key, language, value }. We access to a string value by (key, language).

d. LocalizedStringUtils.js => contains utils methods for localized strings.

https://github.com/helabenkhalfallah/news_kit_frontend/tree/master/app-settings/localized-strings

 

Provider :

https://github.com/helabenkhalfallah/news_kit_frontend/blob/master/pages/_app.js

 

Consumer :

https://github.com/helabenkhalfallah/news_kit_frontend/blob/master/pages/mocks/mock-page.jsx

 

 

js best practices reactjs