fix(plugin-multi-tenant): multi-locale tenant select label (#12444)
fixes https://github.com/payloadcms/payload/issues/12443
This commit is contained in:
@@ -112,7 +112,7 @@ export const TenantSelector = ({ label, viewType }: { label: string; viewType?:
|
||||
i18nKey="plugin-multi-tenant:confirm-tenant-switch--heading"
|
||||
t={t}
|
||||
variables={{
|
||||
tenantLabel: label.toLowerCase(),
|
||||
tenantLabel: getTranslation(label, i18n),
|
||||
}}
|
||||
/>
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ export default buildConfigWithDefaults({
|
||||
isGlobal: true,
|
||||
},
|
||||
},
|
||||
tenantSelectorLabel: 'Site',
|
||||
tenantSelectorLabel: { en: 'Site', es: 'Site in es' },
|
||||
}),
|
||||
],
|
||||
typescript: {
|
||||
|
||||
Reference in New Issue
Block a user