vue-i18n icon indicating copy to clipboard operation
vue-i18n copied to clipboard

korean language line break don't work

Open 4dich opened this issue 4 years ago • 2 comments

For example at ko.json file "ex": "안녕 <br> 하세요"

return {{ $t('ex') }} 안녕 <br> 하세요

but it works well in English(at en.json)

4dich avatar Jan 27 '21 01:01 4dich

Maybe: v-html

scTaoFelix avatar Feb 08 '21 03:02 scTaoFelix

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/

exoego avatar Feb 08 '21 04:02 exoego