我的en/transaltion.js中包含以下内容
'AllDogs': {
'Dogs' :{
'zero': 'ALL DOGS, ',
'one': '1 DOG SELECTED',
'other': '{{count}} DOG SELECTED'
}}hbs具有以下特点
{{t AllDogs.Dogs count=filteredCount }} 它没有显示任何内容,但如果我添加{{t 'AllDogs.Dogs.one'}}它即将出现,任何方向都将是有用的。
发布于 2015-10-07 19:17:51
这需要从组件js中处理,我已经为count添加了一个属性。我的代码如下
dogsCount : function() {
var count = this.get('i18n').t('AllDogs.Dogs ', { count : this.get('ActualCount')});
return count;
}.property('count'),https://stackoverflow.com/questions/31310184
复制相似问题