
Benny JooandGitHub
b17b5a169f
perf: make useLocale hook to use server-fetched i18n if in App router context (#20597)
* write I18nProvider
* rename
* update useLocale
* fix
* use a singleton
* safer
* better
* fix e2e test 1
* fix e2e test 2
* fix e2e test 3
* fix e2e test 4
* fix
* refactor
* address comments
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix flaky test
* add more caching
* revert changes to e2e tests
* add jsdoc
* memoize
* update window object with new translations in /settings/my-account/general
* remove dead code
* only use locale and ns as deps
* fix