Russian Number to Words in JavaScript (ru-RU)
Locale codes:
ru-RU· Numbering system: Short scale · Currency: Ruble / Kopeck · Script: Cyrillic
Install
bash
npm install to-wordsBasic Conversion
js
import { ToWords } from 'to-words';
const tw = new ToWords({ localeCode: 'ru-RU' });
tw.convert(12345);
// "Двенадцать Тысяч Триста Сорок Пять"
tw.convert(1234.56, { currency: true });
// "Одна Тысяча Двести Тридцать Четыре Рубля Пятьдесят Шесть Копеек"Gender
js
tw.convert(1, { gender: 'masculine' }); // "Один"
tw.convert(1, { gender: 'feminine' }); // "Одна"Fraction Style
js
tw.convert(0.21, { decimalStyle: 'fraction' });
tw.convert(1.21, { decimalStyle: 'fraction' });Russian applies Slavic-specific plural logic when fraction-style decimal wording is enabled. Currency mode continues to emit Ruble and Kopeck unit names.
Related
FAQ
Q: Does Russian number-to-words handle grammatical gender?
A: Yes. Pass { gender: 'feminine' } or { gender: 'masculine' } to the convert() options.
Q: What locale code for Russian?
A: ru-RU.