mirror of
https://github.com/directus/directus.git
synced 2026-01-26 14:58:30 -05:00
fix: translate formatted value when setting translation key (#12354)
* fix: translate formatted value when setting translation key * linting
This commit is contained in:
@@ -143,7 +143,8 @@ export default defineComponent({
|
||||
|
||||
const displayValue = computed(() => {
|
||||
if (computedFormat.value.text) {
|
||||
return computedFormat.value.text;
|
||||
const { text } = computedFormat.value;
|
||||
return text.startsWith('$t:') ? t(text.slice(3)) : text;
|
||||
}
|
||||
|
||||
if (isNil(props.value) || props.value === '') return null;
|
||||
|
||||
Reference in New Issue
Block a user