vuei18n
// in input place holder
:placeholder="$t('全部彩种')"
// in data
data() {
return {
issueName: '追号开始期号',
statusArray: [
{title: this.$t("全部状态"), stateValue: null},
{title: this.$t("进行中"), stateValue: 0},
{title: this.$t("已完成"), stateValue: 2}
// {title: '已取消', stateValue: 1}
]
}
}
// in template pass variable string
<div class="ball_title" >{{$t(item)}}</div>
//pass parameters
{{$t("查询区间为北京时间", {'0': '07:00', '1': '5:00'})}}