Webatrice: i18n (#4562)

* implement i18n capability

* reset package.lock file

* remove custom fallback

* fix relative path for i18n files

* check for language support before fetch request

* add LanguageDropdown component, es translation file to prove functionality

* remove boilerplate

* bundle default english translation with app

* add missing file

* rollup component-level i18n files

* cleanup

Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
This commit is contained in:
Jeremy Letto 2022-02-26 21:36:53 -06:00 committed by GitHub
parent 217dc09c0f
commit 9577ada171
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 365 additions and 111 deletions

View file

@ -13,6 +13,8 @@
"dexie": "^3.0.3",
"final-form": "^4.20.4",
"final-form-set-field-touched": "^1.0.1",
"i18next": "^21.6.10",
"i18next-browser-languagedetector": "^6.1.3",
"jquery": "^3.6.0",
"lodash": "^4.17.21",
"prop-types": "^15.7.2",
@ -21,6 +23,7 @@
"react-dom": "^17.0.2",
"react-final-form": "^6.5.7",
"react-final-form-listeners": "^1.0.3",
"react-i18next": "^11.15.3",
"react-redux": "^7.2.6",
"react-router-dom": "^5.3.0",
"react-scripts": "4.0.3",