@@ -76,8 +76,7 @@ gulp prod
7676``` html
7777<span >Перевод вашего первого ключа из словаря для текущего языка</span >
7878<span >Пришла 1 кошечка</span >
79- <span >Пришли 2 кошечки</span >
80- <span >Пришло 5 кошечек</span >
79+ <span >Пришли 2 кошечки</span ><span >Пришло 5 кошечек</span >
8180```
8281
8382### What am I using:
@@ -119,7 +118,7 @@ reducers.i18n = i18nReducer
119118const store = createStore ( combineReducers ( reducers ) )
120119
121120...
122- // Set dictionaries (simpliest exapmple ) -----------------------------------------------------------------------------------------------
121+ // Set dictionaries (simpliest example ) -----------------------------------------------------------------------------------------------
123122
124123// This dictionaries can be supported by Localization team without need to know somth about interface or project,
125124// and you just can fetch it to your project
@@ -138,9 +137,9 @@ const dictionaries = {
138137 /* Other dictionaries */
139138}
140139store .dispatch ( i18nActions .setDictionaries ( dictionaries ) )
141- // / Set dictionaries (simpliest exapmple ) ---------------------------------------------------------------------------------------------
140+ // / Set dictionaries (simpliest example ) ---------------------------------------------------------------------------------------------
142141
143- // Set languages (simpliest exapmple ) --------------------------------------------------------------------------------------------------
142+ // Set languages (simpliest example ) --------------------------------------------------------------------------------------------------
144143const languages = [
145144 {
146145 code: ' ru-RU' ,
@@ -155,7 +154,7 @@ const languages = [
155154]
156155
157156store .dispatch ( i18nActions .setLanguages ( languages ) )
158- // / Set languages (simpliest exapmple ) ------------------------------------------------------------------------------------------------
157+ // / Set languages (simpliest example ) ------------------------------------------------------------------------------------------------
159158
160159// Set current language code (you can map this action to select component or somth like this)
161160store .dispatch ( i18nActions .setCurrentLanguage ( ' ru-RU' ) )
0 commit comments