10 lines
190 B
JavaScript
10 lines
190 B
JavaScript
import Ember from 'ember';
|
|
|
|
const { Helper } = Ember;
|
|
|
|
export function pluralize([term, count]) {
|
|
return count === 1 ? term : term.pluralize();
|
|
}
|
|
|
|
export default Helper.helper(pluralize);
|