Merge pull request #3934 from gschlager/badges

UX: Show translated badge names and badge groupings
This commit is contained in:
Régis Hanol
2016-01-20 14:42:30 +01:00
8 changed files with 45 additions and 42 deletions
@@ -8,7 +8,7 @@ export default RestModel.extend({
return this.get('name').toLowerCase().replace(/\s/g, '_');
},
@computed
@computed('name')
displayName() {
const i18nKey = `badges.badge_grouping.${this.get('i18nNameKey')}.name`;
return I18n.t(i18nKey, {defaultValue: this.get('name')});