Refactor flag types for more customization

This commit is contained in:
Robin Ward
2017-10-17 13:31:45 -04:00
parent e600fb79b3
commit 838568cbc3
26 changed files with 253 additions and 82 deletions

View File

@@ -0,0 +1,12 @@
function postActionTitle([id, nameKey]) {
let title = I18n.t(`admin.flags.short_names.${nameKey}`, { defaultValue: null });
// TODO: We can remove this once other translations have been updated
if (!title) {
return I18n.t(`admin.flags.summary.action_type_${id}`, { count: 1 });
}
return title;
}
export default Ember.Helper.helper(postActionTitle);