vue-i18n
vue-i18n copied to clipboard
korean language line break don't work
For example at ko.json file
"ex": "안녕 <br> 하세요"
return
{{ $t('ex') }}
안녕 <br> 하세요
but it works well in English(at en.json)
Maybe: v-html
HTML tags in message are handled as plain text in $t
, for security reason.
As taotaoshan suggested, perhaps you should use v-html
.
You may find this document helpful.
https://kazupon.github.io/vue-i18n/guide/formatting.html#html-formatting
but it works well in English(at en.json)
If vue-i18n behaves diffrently for language, please create a JSFiddle to reproduce based on https://jsfiddle.net/Lwgq41o5/