Browse Source

fixed i18n init in app thread

Skylsmoi 5 years ago
parent
commit
865136d133
1 changed files with 1 additions and 11 deletions
  1. 1 11
      frontend_app_thread/src/i18n.js

+ 1 - 11
frontend_app_thread/src/i18n.js View File

@@ -1,8 +1,5 @@
1 1
 import i18n from 'i18next'
2 2
 import { reactI18nextModule } from 'react-i18next'
3
-import { langFr, langEn } from 'tracim_frontend_lib'
4
-import fr from './translate/fr.js'
5
-import en from './translate/en.js'
6 3
 
7 4
 i18n
8 5
   .use(reactI18nextModule)
@@ -18,14 +15,7 @@ i18n
18 15
     react: {
19 16
       wait: true
20 17
     },
21
-    resources: {
22
-      en: {
23
-        translation: {...langEn.translation, ...en.translation}
24
-      },
25
-      fr: {
26
-        translation: {...langFr.translation, ...fr.translation}
27
-      }
28
-    }
18
+    resources: {} // init with empty resources, they will come from frontend in app constructor
29 19
   })
30 20
 
31 21
 export default i18n