Skip to content

andrepolischuk/typographic-numbers-l10n-db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typographic-numbers-l10n-db

Raw data about typographic numbers

Use typographic numbers depending on your locale for proper thousand separator and decimal point.

Install

npm install --save typographic-numbers-l10n-db

Usage

Pass ISO 639 code to specify locale and numbersDB will return 2 symbols. First is a thousand separator and second is a decimal point.

import numbersDB from 'typographic-numbers-l10n-db';

numbersDB['en-us']; // ,.
numbersDB['pt-br']; // .,

License

MIT