$tc用法:
涉及到复数等概念,使用$tc较合适。
语言文件: 'hint.desc': 'aaa|bbb|Can not find avaliable {name} xx,xx,xx,xx information.',
vue页面使用: {{ $tc('hint.desc', 2, { name: 'xun' }) }}
$t用法
语言文件: 'hint.desc': 'Can not find avaliable {name} xx,xx,xx,xx information.',
vue页面使用: {{ $t('hint.desc', { name: 'xun' }) }}