hellsgor / Pluralizer

Returns the desired declension of a word depending on the numeral

Home Page:https://www.npmjs.com/package/pluralizer-for-js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pluralizer for JavaScript

pluralizer returns the desired declension of a word depending on the numeral.

Installation

npm i pluralizer-for-js

Usage

import {pluralizer} from '../../node_modules/pluralizer-for-js/pluralizer.mjs'

const result = pluralizer(178573, 'яблоко', 'яблока', 'яблок');
console.log(result);

About

Returns the desired declension of a word depending on the numeral

https://www.npmjs.com/package/pluralizer-for-js/


Languages

Language:JavaScript 100.0%