diff --git a/src/assets/locales/en.js b/src/assets/locales/en.js new file mode 100644 index 0000000..a268e27 --- /dev/null +++ b/src/assets/locales/en.js @@ -0,0 +1,5 @@ +const en = { + translation: {}, +}; + +export default en; diff --git a/src/i18n.js b/src/i18n.js index f7f80be..7e70071 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -1,14 +1,9 @@ import i18n from 'i18next'; import { initReactI18next } from 'react-i18next'; +import en from './assets/locales/en'; -// the translations -// (tip move them in a JSON file and import them) const resources = { - en: { - translation: { - 'Welcome to React': 'Welcome to React and react-i18next', - }, - }, + en, }; i18n