Skip to content

Commit 439ed93

Browse files
committed
fixes locale switcher localize modal translation for pages
1 parent c03f0e3 commit 439ed93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/@apostrophecms/doc-type/ui/apos/components/AposDocLocalePicker.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const props = defineProps({
6161
6262
const $t = inject('i18n');
6363
const i18nAction = apos.modules['@apostrophecms/i18n'].action;
64-
const docType = props.moduleOptions.label.toLowerCase();
64+
const docType = $t(props.moduleOptions.label)?.toLowerCase();
6565
const forbiddenTooltip = $t('apostrophe:localeSwitcherPermissionToCreate', { docType });
6666
const menu = ref(null);
6767
const docLocalized = ref({});

0 commit comments

Comments
 (0)