Commit a820ee24 authored by MARCO Jonathan's avatar MARCO Jonathan
Browse files

Can display the rich text translation

parent 67b936db
Pipeline #74004 passed with stage
in 12 seconds
<template>
<v-row
v-if="editorMode || exist"
v-show="editorMode || visible"
v-if="editorMode || exist"
v-show="editorMode || visible"
>
<v-col
:class="editorMode ? 'mx-2' : ''"
v-html="editorMode ? field.content : content"
:class="editorMode ? 'mx-2' : ''"
v-html="editorMode ? field.content : content"
/>
</v-row>
</template>
<script>
<script lang="ts">
import {
usfFieldMixin,
usfHandleConditional,
} from '../../../mixins';
import utils from '../utils';
} from '../../../mixins'
import utils from '../utils'
import { mapGetters } from 'vuex'
export default {
name: 'UsfContent',
......@@ -34,12 +35,18 @@ export default {
},
computed: {
content() {
const that = this;
return utils.interpolate(this.field.content, that);
...mapGetters('form', [
'translated',
]),
content (): void {
const self = this
return utils.interpolate(
this.translated(this.field.id, 'content') || this.field.content,
self
)
},
},
};
}
</script>
<style scoped>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment