github.com/hernad/nomad@v1.6.112/ui/app/helpers/pluralize.js (about)

     1  /**
     2   * Copyright (c) HashiCorp, Inc.
     3   * SPDX-License-Identifier: MPL-2.0
     4   */
     5  
     6  import Helper from '@ember/component/helper';
     7  import { pluralize } from 'ember-inflector';
     8  
     9  export function pluralizeHelper([term, count]) {
    10    return count === 1 ? term : pluralize(term);
    11  }
    12  
    13  export default Helper.helper(pluralizeHelper);