npm install gettext-pluralsThis is an excerpt of node-gettext's plural forms. Only Polish language is supported.
``sh`
npm i --save gettext-plurals
`js
const pl = require('gettext-plurals').pl;
const cats = ['kot', 'koty', 'kotów'];
cats[pl(23)]; // 'koty'
`
`js
import { pl } from 'gettext-plurals';
const cats = ['kot', 'koty', 'kotów'];
export default function ({ count }) {
return
https://github.com/alexanderwallin/node-gettext/blob/master/lib/plurals.js
MIT