miaolz123 / vue-markdown

A Powerful and Highspeed Markdown Parser for Vue
https://miaolz123.github.io/vue-markdown/
MIT License
1.89k stars 257 forks source link

locale change support #103

Open corrot opened 4 years ago

corrot commented 4 years ago

Hello, I have locale implemented like this:

<vue-markdown>{{ q[answer_${locale}] }}</vue-markdown>

Problem is, when locale is updated text inside stays the same.

I couldn't find any workarounds and that's why I opened this issue.

Thanks in advance

smallst commented 4 years ago

use :source

<vue-markdown :source="q[answer_${locale}]"></vue-markdown>