This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/components/count-i18n.js.es6
2015-05-11 11:18:37 -04:00

9 lines
269 B
JavaScript

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') }));
}
});