@ordergroove/i18n-data
v0.4.8
Published
Contains information about select countries to use in different applications.
Downloads
3,254
Readme
Ordergroove Internationalization Data
This package contains information about select countries to be used in address forms and displays. The information includes (but is not limited to) the different countries':
- Name
- Regions (if any)
- Required fields for a valid address
- Address format
Usage
This is a single JSON file so accessing the country information is as simple as
> const i18n = require('i18n-data');
> i18n.US.name
<- 'UNITED STATES'
Locale Data
Contains a list of locales we support based on list of countries supported. Fields
- name
- language
- location
- tag
Usage
> const locales = require('i18n-data/i18n_locale_data');
> locales.all[0]
<- {"name":"Afar","language":"Afar","location":"Djibouti","tag":"aa-DJ"}