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
This commit is contained in:
1 parent
9eb1fe06e3
commit
b17b5a169f
7 files changed
+182
-101
No files matched your search
@@ -32,6 +32,11 @@ export function UnpublishedEntity(props: UnpublishedEntityProps) {
|
||||
avatar={<Avatar alt={slug ?? ""} imageSrc={getPlaceholderAvatar(props.logoUrl, slug)} size="lg" />}
|
||||
headline={t("team_is_unpublished", {
|
||||
team: props.name,
|
||||
interpolation: {
|
||||
// This is needed because React automatically escapes special characters like apostrophes
|
||||
// for security (XSS prevention), but we want to display the actual apostrophe in the UI
|
||||
escapeValue: false,
|
||||
},
|
||||
})}
|
||||
description={t(`${props.orgSlug ? "org" : "team"}_is_unpublished_description`)}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user