9 lines
269 B
Plaintext
Raw Normal View History

2015-04-28 17:05:06 -04:00
export default Ember.Component.extend(Discourse.StringBuffer, {
tagName: 'span',
rerenderTriggers: ['count', 'suffix'],
renderString: function(buffer) {
buffer.push(I18n.t(this.get('key') + (this.get('suffix') || ''), { count: this.get('count') }));
}
});