Webatrice: i18n login screen (#4584)

* i18n: login container and form

* i18n: activate, host, and register forms

* i18n: reset password forms

* i18n: login dialogs, ICU formatting

* i18n: login containers and components

Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
This commit is contained in:
Jeremy Letto 2022-03-02 22:34:57 -06:00 committed by GitHub
parent baaf261116
commit f5b973e15c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 424 additions and 99 deletions

View file

@ -1,5 +1,6 @@
import i18n from 'i18next';
import LanguageDetector from 'i18next-browser-languagedetector';
import ICU from 'i18next-icu';
import { initReactI18next } from 'react-i18next';
import { Language } from 'types';
@ -10,6 +11,7 @@ import I18nBackend from './i18n-backend';
import translation from './i18n-default.json';
i18n
.use(ICU)
.use(I18nBackend)
.use(LanguageDetector)
.use(initReactI18next)
@ -24,7 +26,7 @@ i18n
interpolation: {
// not needed for react as it escapes by default
escapeValue: false,
},
}
});
export default i18n;