0

我的讯息:

'time': '0 time | 1 time | {count} times'

我的模板:

{{ $t('time', repeat, { count: repeat }) }}

repeat= 100的输出:

0 time | 1 time | 100 times

代替:

100 times

我做错什么了?

4

1 回答 1

0

所以对于复数你应该使用$tc而不是$thttp://kazupon.github.io/vue-i18n/api/#tc):

{{ $tc('time', repeat, { count: repeat }) }}
于 2019-03-18T21:12:37.007 回答