open-nomad/ui/app/helpers/pluralize.js

8 lines
182 B
JavaScript
Raw Normal View History

import Helper from '@ember/component/helper';
2017-09-19 14:47:10 +00:00
export function pluralize([term, count]) {
return count === 1 ? term : term.pluralize();
}
export default Helper.helper(pluralize);