1.0.4 • Published 4 years ago

vue-filter-pluralize v1.0.4

Weekly downloads
41
License
MIT
Repository
github
Last release
4 years ago

vue-filter-pluralize

Simple pluralize filter for Vue.js

NPM Version License Downloads Dependabot Status

Installation

install from npm

$ npm install vue-filter-pluralize

and register in you Vue app

import Vue from 'vue'
import VueFilterPluralize from 'vue-filter-pluralize'

Vue.use(VueFilterPluralize)

Usage

<template>
  <div>{{ number }} {{ number | pluralize('ru', ['штука', 'штуки', 'штук']) }}</div>
</template>

Supported languages

Plural rule #0 (1 form)

  • Chinese (zh)
  • Japanese (ja)
  • Korean (ko)
  • Lao (lo)
  • Persian (fa)
  • Thai (th)
  • Turkish (tr)

Plural rule #1 (2 forms)

  • Basque (eu)
  • Catalan (ca)
  • Danish (da)
  • Dutch (nl)
  • English (en)
  • Estonian (et)
  • Faroese (fo)
  • Finnish (fi)
  • Frisian (fy)
  • German (de)
  • Greek (el)
  • Hebrew (he)
  • Hungarian (hu)
  • Italian (it)
  • Norwegian (nb)
  • Portuguese (pt)
  • Spanish (es)
  • Swedish (sv)
  • Vietnamese (vi)

Plural rule #2 (2 forms)

  • Brazilian Portuguese (pt-BR)
  • French (fr)

Plural rule #3 (3 forms)

  • Latgalian
  • Latvian (lv)

Plural rule #4 (4 forms)

  • Scottish Gaelic (gd)

Plural rule #5 (3 forms)

  • Romanian (ro)

Plural rule #6 (3 forms)

  • Lithuanian (lt)

Plural rule #7 (3 forms)

  • Belarusian (be)
  • Bosnian (bs)
  • Croatian (hr)
  • Serbian (sk)
  • Russian (ru)
  • Ukrainian (uk)

Plural rule #8 (3 forms)

  • Czech (cs)
  • Slovak (sk)

Plural rule #9 (3 forms)

  • Polish (pl)

Plural rule #10 (4 forms)

  • Slovenian (sl)

Plural rule #11 (5 forms)

Not implemented

Plural rule #12 (6 forms)

Not implemented

Plural rule #13 (4 forms)

Not implemented

Plural rule #14 (3 forms)

Not implemented

Plural rule #15 (2 forms)

Not implemented

Plural rule #16 (5 forms)

Not implemented

Plural rule #17 (2 forms)

Not implemented

Plural rule #18 (6 forms)

Not implemented

License

MIT © Eduard Nikolenko

1.0.4

4 years ago

1.0.3

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago