Adding loader for i18next translation files
This commit is contained in:
@@ -9,6 +9,7 @@ i18n
|
||||
.use(LangDetector)
|
||||
.init({
|
||||
fallbackLng: 'en',
|
||||
fallbackNS: 'missing',
|
||||
debug: (process.env.NODE_ENV !== 'production'),
|
||||
resources: locales
|
||||
});
|
||||
|
||||
@@ -1,5 +1 @@
|
||||
export default {
|
||||
en: {
|
||||
translation: require('./en/translation.yaml')
|
||||
}
|
||||
};
|
||||
// Here so webpack has something to resolve
|
||||
|
||||
Reference in New Issue
Block a user