Skip to content

Commit 4fe3423

Browse files
authored
fix(plugin-multi-tenant): multi-locale tenant select label (#12444)
fixes #12443
1 parent e8c2b15 commit 4fe3423

File tree

2 files changed

+2
-2
lines changed
  • packages/plugin-multi-tenant/src/components/TenantSelector
  • test/plugin-multi-tenant

2 files changed

+2
-2
lines changed

packages/plugin-multi-tenant/src/components/TenantSelector/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export const TenantSelector = ({ label, viewType }: { label: string; viewType?:
112112
i18nKey="plugin-multi-tenant:confirm-tenant-switch--heading"
113113
t={t}
114114
variables={{
115-
tenantLabel: label.toLowerCase(),
115+
tenantLabel: getTranslation(label, i18n),
116116
}}
117117
/>
118118
}

test/plugin-multi-tenant/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default buildConfigWithDefaults({
4141
isGlobal: true,
4242
},
4343
},
44-
tenantSelectorLabel: 'Site',
44+
tenantSelectorLabel: { en: 'Site', es: 'Site in es' },
4545
}),
4646
],
4747
typescript: {

0 commit comments

Comments
 (0)