1 | const messages = { |
模板如下1
2<p>{{ $t('Hello {name}', { name: 'John' }}) }}</p>
<p>{{ $t('The weather today is {condition}!', { condition: 'sunny' }) }}</p>
输出如下1
2<p>Здравствуйте John</p>
<p>The weather today is sunny!</p>
想学更多有意思的东西,想做自己的网站,想学画画
1 | const messages = { |
模板如下1
2<p>{{ $t('Hello {name}', { name: 'John' }}) }}</p>
<p>{{ $t('The weather today is {condition}!', { condition: 'sunny' }) }}</p>
输出如下1
2<p>Здравствуйте John</p>
<p>The weather today is sunny!</p>