@ordergroove/i18n-data
Advanced tools
Comparing version 0.1.4-alpha-PR-470-63.2652 to 0.2.8
@@ -6,2 +6,77 @@ # Change Log | ||
## [0.2.8](https://github.com/ordergroove/plush-toys/tree/master/packages/i18n-data/compare/@ordergroove/i18n-data@0.2.7...@ordergroove/i18n-data@0.2.8) (2021-07-19) | ||
**Note:** Version bump only for package @ordergroove/i18n-data | ||
## [0.2.7](https://github.com/ordergroove/plush-toys/tree/master/packages/i18n-data/compare/@ordergroove/i18n-data@0.2.6...@ordergroove/i18n-data@0.2.7) (2021-07-19) | ||
**Note:** Version bump only for package @ordergroove/i18n-data | ||
## [0.2.6](https://github.com/ordergroove/plush-toys/tree/master/packages/i18n-data/compare/@ordergroove/i18n-data@0.2.5...@ordergroove/i18n-data@0.2.6) (2021-07-19) | ||
**Note:** Version bump only for package @ordergroove/i18n-data | ||
## [0.2.5](https://github.com/ordergroove/plush-toys/tree/master/packages/i18n-data/compare/@ordergroove/i18n-data@0.2.4...@ordergroove/i18n-data@0.2.5) (2021-07-19) | ||
**Note:** Version bump only for package @ordergroove/i18n-data | ||
## [0.2.4](https://github.com/ordergroove/plush-toys/tree/master/packages/i18n-data/compare/@ordergroove/i18n-data@0.2.3...@ordergroove/i18n-data@0.2.4) (2021-07-19) | ||
**Note:** Version bump only for package @ordergroove/i18n-data | ||
## [0.2.3](https://github.com/ordergroove/plush-toys/tree/master/packages/i18n-data/compare/@ordergroove/i18n-data@0.2.2...@ordergroove/i18n-data@0.2.3) (2021-07-16) | ||
**Note:** Version bump only for package @ordergroove/i18n-data | ||
## [0.2.2](https://github.com/ordergroove/plush-toys/tree/master/packages/i18n-data/compare/@ordergroove/i18n-data@0.2.1...@ordergroove/i18n-data@0.2.2) (2021-07-16) | ||
**Note:** Version bump only for package @ordergroove/i18n-data | ||
## [0.2.1](https://github.com/ordergroove/plush-toys/tree/master/packages/i18n-data/compare/@ordergroove/i18n-data@0.2.0...@ordergroove/i18n-data@0.2.1) (2021-07-16) | ||
**Note:** Version bump only for package @ordergroove/i18n-data | ||
# [0.2.0](https://github.com/ordergroove/plush-toys/tree/master/packages/i18n-data/compare/@ordergroove/i18n-data@0.1.3...@ordergroove/i18n-data@0.2.0) (2021-07-16) | ||
### Features | ||
* added locale data ([83097e5](https://github.com/ordergroove/plush-toys/tree/master/packages/i18n-data/commit/83097e541cb52c9bf5811cc69a92c491533b2a9c)) | ||
## [0.1.3](https://github.com/ordergroove/plush-toys/tree/master/packages/i18n-data/compare/@ordergroove/i18n-data@0.1.2...@ordergroove/i18n-data@0.1.3) (2021-05-03) | ||
@@ -8,0 +83,0 @@ |
{ | ||
"name": "@ordergroove/i18n-data", | ||
"version": "0.1.4-alpha-PR-470-63.2652+433fa32d", | ||
"version": "0.2.8", | ||
"description": "Contains information about select countries to use in different applications.", | ||
@@ -23,3 +23,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "433fa32d25209028581992a86ecbe9b413e0fc6a" | ||
"gitHead": "82592e89350d5a7325f89e6096c4dae9174a3952" | ||
} |
@@ -16,1 +16,18 @@ # Ordergroove Internationalization Data | ||
``` | ||
# Locale Data | ||
Contains a list of locales we support based on list of countries supported. | ||
Fields | ||
- name | ||
- language | ||
- location | ||
- tag | ||
## Usage | ||
```javascript | ||
> const locales = require('i18n-data/i18n_locale_data'); | ||
> locales.all[0] | ||
<- {"name":"Afar","language":"Afar","location":"Djibouti","tag":"aa-DJ"} | ||
``` |
const i18n = require('../i18n_country_data'); | ||
const i18nLocales = require('../i18n_locale_data'); | ||
@@ -24,1 +25,21 @@ describe('Check the JSON structure', function() { | ||
}); | ||
describe('Check the Locale Array', () => { | ||
it('should at least contain major locales', () => { | ||
expect(i18nLocales.all).toContain(jasmine.objectContaining({ tag: 'en-US' })); | ||
expect(i18nLocales.all).toContain(jasmine.objectContaining({ tag: 'fr-CA' })); | ||
expect(i18nLocales.all).toContain(jasmine.objectContaining({ tag: 'es-ES' })); | ||
expect(i18nLocales.all).toContain(jasmine.objectContaining({ tag: 'en-CA' })); | ||
}); | ||
it('should contain the language, location, and tag', () => { | ||
expect(i18nLocales.all.find(l => l.tag === 'en-US')).toEqual( | ||
jasmine.objectContaining({ | ||
name: 'English', | ||
language: 'English', | ||
location: 'United States', | ||
tag: 'en-US' | ||
}) | ||
); | ||
}); | ||
}); |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
134867
8
394
33
0