Adding loader for i18next translation files

This commit is contained in:
Jeff Avallone
2018-02-13 17:45:27 -05:00
parent 5ab4a70414
commit 888336cbec
5 changed files with 39 additions and 27 deletions
+1
View File
@@ -9,6 +9,7 @@ i18n
.use(LangDetector)
.init({
fallbackLng: 'en',
fallbackNS: 'missing',
debug: (process.env.NODE_ENV !== 'production'),
resources: locales
});
+1 -5
View File
@@ -1,5 +1 @@
export default {
en: {
translation: require('./en/translation.yaml')
}
};
// Here so webpack has something to resolve