plural

Provides options for pluralizing a string based on input count.

Installation

Global install:

import Vue from 'vue';
import { plural } from 'vuetensils/src/filters';

Vue.filter('plural', plural);

Local install:

<script>
  import { plural } from 'vuetensils/src/filters';

  export default {
    filters: {
      plural,
    },
  };
</script>

Example