const messages = {
en: {
message: {
hello: '{msg} world'
}
}
}
<p>{
{ $t('message.hello', { msg: 'hello' }) }}</p>
输出如下:
<p>hello world</p>
const messages = {
en: {
message: {
hello: '{msg} world'
}
}
}
<p>{
{ $t('message.hello', { msg: 'hello' }) }}</p>
输出如下:
<p>hello world</p>