|
@@ -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
|