open-nomad/ui/app/helpers/pluralize.js
2019-04-10 14:54:35 -07:00

9 lines
238 B
JavaScript

import Helper from '@ember/component/helper';
import { pluralize } from 'ember-inflector';
export function pluralizeHelper([term, count]) {
return count === 1 ? term : pluralize(term);
}
export default Helper.helper(pluralizeHelper);