diff --git a/src/main/resources/generator/client/react/i18n/src/main/webapp/app/i18n.ts b/src/main/resources/generator/client/react/i18n/src/main/webapp/app/i18n.ts index 7c8b4967634..34d2c39109c 100644 --- a/src/main/resources/generator/client/react/i18n/src/main/webapp/app/i18n.ts +++ b/src/main/resources/generator/client/react/i18n/src/main/webapp/app/i18n.ts @@ -4,7 +4,7 @@ import { initReactI18next } from 'react-i18next'; import LanguageDetector from 'i18next-browser-languagedetector'; import Backend from 'i18next-http-backend'; -void i18n +i18n .use(Backend) .use(LanguageDetector) .use(initReactI18next) @@ -19,6 +19,9 @@ void i18n backend: { loadPath: '../assets/locales/{{ lng }}/{{ ns }}.json', }, + }) + .catch(error => { + console.error('i18n initialization failed', error); }); export default i18n;