feat(i18n): save and load locale from redux store (#1723)
* wrap sock around function component to get re-renders * removed sourcelocale since we are using custom ids * load locale data dynamically * undo dev change * ran yarn i18n:extract * store locale in redux * added support for redux * restored header * refactor * addressed pr feedback * specify type * added navigator locale fallback to generic dialect * make locale array const and typed * addressed pr feedback * fixed various * addressed pr feedback * make supported locales constant uppercase * add back toUpperCase removed during refactoring * removed lingui/detect-locale * run yarn
Showing
... | @@ -7,7 +7,6 @@ | ... | @@ -7,7 +7,6 @@ |
"@emotion/core": "^11.0.0", | "@emotion/core": "^11.0.0", | ||
"@ethersproject/experimental": "^5.2.0", | "@ethersproject/experimental": "^5.2.0", | ||
"@lingui/cli": "^3.9.0", | "@lingui/cli": "^3.9.0", | ||
"@lingui/detect-locale": "^3.9.0", | |||
"@lingui/loader": "^3.9.0", | "@lingui/loader": "^3.9.0", | ||
"@lingui/macro": "^3.9.0", | "@lingui/macro": "^3.9.0", | ||
"@lingui/react": "^3.9.0", | "@lingui/react": "^3.9.0", | ||
... | ... |
src/constants/locales.ts
0 → 100644
Please register or sign in to comment