French Number to Words JavaScript
7 regional French locales with correct regional variants for 70 (soixante-dix vs septante) and 80 (quatre-vingts vs huitante).
| Locale | Country | 70 | 80 |
|---|---|---|---|
fr-FR | France | soixante-dix | quatre-vingts |
fr-BE | Belgium | septante | huitante |
fr-CH | Switzerland | septante | huitante |
fr-CA | Canada | soixante-dix | quatre-vingts |
fr-DZ | Algeria | soixante-dix | quatre-vingts |
fr-MA | Morocco | soixante-dix | quatre-vingts |
fr-SA | Saudi Arabia | soixante-dix | quatre-vingts |
Install
bash
npm install to-wordsBasic Conversion
js
import { ToWords } from 'to-words';
const tw = new ToWords({ localeCode: 'fr-FR' });
tw.convert(70); // "Soixante-Dix"
tw.convert(80); // "Quatre-Vingts"
tw.convert(1234.56, { currency: true });
// "Mille Deux Cent Trente Quatre Euros Et Cinquante Six Centimes"Belgium / Switzerland
js
const tw = new ToWords({ localeCode: 'fr-BE' });
tw.convert(70); // "Septante"
tw.convert(80); // "Huitante"FAQ
Q: Why is 70 different in Belgium vs France?
A: Belgium and Switzerland use "septante" while France uses "soixante-dix". to-words handles both correctly.