mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix translation in render-template (#14355)
* Translate labels * Fix translate in render-template instead
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<component
|
||||
:is="`display-${part.component}`"
|
||||
v-else-if="typeof part === 'object' && part.component"
|
||||
v-bind="part.options"
|
||||
v-bind="translate(part.options || {})"
|
||||
:value="part.value"
|
||||
:interface="part.interface"
|
||||
:interface-options="part.interfaceOptions"
|
||||
@@ -28,7 +28,7 @@ import { Field } from '@directus/shared/types';
|
||||
import { getDisplay } from '@/displays';
|
||||
import ValueNull from '@/views/private/components/value-null';
|
||||
import { getDefaultDisplayForType } from '@/utils/get-default-display-for-type';
|
||||
import { translate } from '@/utils/translate-literal';
|
||||
import { translate } from '@/utils/translate-object-values';
|
||||
|
||||
export default defineComponent({
|
||||
components: { ValueNull },
|
||||
|
||||
Reference in New Issue
Block a user