feat: add en locale to i18n resources

This commit is contained in:
2023-06-02 21:33:33 +01:00
parent b913ae75a6
commit 9025deb6fc
2 changed files with 7 additions and 7 deletions

5
src/assets/locales/en.js Normal file
View File

@@ -0,0 +1,5 @@
const en = {
translation: {},
};
export default en;

View File

@@ -1,14 +1,9 @@
import i18n from 'i18next'; import i18n from 'i18next';
import { initReactI18next } from 'react-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 = { const resources = {
en: { en,
translation: {
'Welcome to React': 'Welcome to React and react-i18next',
},
},
}; };
i18n i18n