mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 08:34:52 -07:00
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:
parent
baaf261116
commit
f5b973e15c
35 changed files with 424 additions and 99 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue