feat: add en locale to i18n resources
This commit is contained in:
5
src/assets/locales/en.js
Normal file
5
src/assets/locales/en.js
Normal file
@@ -0,0 +1,5 @@
|
||||
const en = {
|
||||
translation: {},
|
||||
};
|
||||
|
||||
export default en;
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user