Language Detection implementation, bug fixes related to i18n and debugger helper added.

This commit is contained in:
romulo bordezani committed 2019-06-11 20:05:14 -03:00
1 parent fde6088cb1
commit 0c8cd3fbe9
11 files changed
+125 -57

No files matched your search

+9
View File
@@ -8,6 +8,7 @@ import pkg from './package.json';
// Deal with https://github.com/rollup/rollup-plugin-commonjs/issues/297
import builtins from 'rollup-plugin-node-builtins';
import copy from 'rollup-plugin-copy';
import json from 'rollup-plugin-json';
const globals = {
react: 'React',
@@ -17,6 +18,7 @@ const globals = {
'prop-types': 'PropTypes',
'i18next': 'i18next',
'react-i18next': 'react-i18next',
'i18next-browser-languagedetector': 'LngDetector'
};
export default {
@@ -48,6 +50,13 @@ export default {
targets: ['src/locales'],
outputFolder: 'dist',
}),
json({
// ignores indent and generates the smallest code
compact: true, // Default: false
// generate a named export for every property of the JSON object
namedExports: true // Default: true
}),
url(),
babel({
exclude: 'node_modules/**',