Uzbek Number to Words in JavaScript (uz-UZ) โ
Use uz-UZ when your application needs Uzbek number words for invoicing, checkout flows, or legal documents that print totals in full words.
Locale codes:
uz-UZยท Numbering system: Short scale ยท Currency: So'm / Tiyin ยท Script: Latin
Install โ
bash
npm install to-wordsBasic Conversion โ
js
import { ToWords } from 'to-words';
const tw = new ToWords({ localeCode: 'uz-UZ' });
tw.convert(100);
tw.convert(1000);
tw.convert(1000000);Currency - So'm / Tiyin โ
js
tw.convert(1234.56, { currency: true });
tw.convert('500.00', { currency: true, includeZeroFractional: true });Ordinal Numbers โ
js
tw.toOrdinal(1);
tw.toOrdinal(10);
tw.toOrdinal(100);Tree-shakeable (single-locale) import โ
js
import { toWords, toCurrency, toOrdinal } from 'to-words/uz-UZ';
toWords(1000);
toCurrency(999.99);Locale Codes โ
| Locale code | Country | Currency | Notes |
|---|---|---|---|
uz-UZ | Uzbekistan | So'm / Tiyin | Standard Uzbek number wording |
Related โ
FAQ โ
Q: Which locale code should I use for Uzbek number-to-words output? Use uz-UZ.
Q: Does to-words support Uzbek ordinal words? Yes. uz-UZ includes ordinal mappings so toOrdinal() works without any custom suffix logic.