pluralizer
returns the desired declension of a word depending on the numeral.
npm i pluralizer-for-js
import {pluralizer} from '../../node_modules/pluralizer-for-js/pluralizer.mjs'
const result = pluralizer(178573, 'яблоко', 'яблока', 'яблок');
console.log(result);