Japanese Number to Words in JavaScript (ja-JP) β
Locale codes:
ja-JPΒ· Numbering system: East Asian Β· Currency: Yen Β· Script: Kanji + Kana
Install β
bash
npm install to-wordsBasic Conversion β
js
import { ToWords } from 'to-words';
const tw = new ToWords({ localeCode: 'ja-JP' });
tw.convert(12345); // "δΈδΈδΊεδΈηΎεεδΊ"
tw.convert(100000000); // "δΈε"
tw.convert(1234, { currency: true }); // "εδΊηΎδΈεεε"East Asian Scale β
| Value | Character |
|---|---|
| 10^4 | δΈ |
| 10^8 | ε |
| 10^12 | ε |
| 10^16 | δΊ¬ |
Related β
FAQ β
Q: What locale code is used for Japanese?
A: ja-JP.