Skip to content

Commit

Permalink
fix: swap country-language to @ladjs/country-language
Browse files Browse the repository at this point in the history
  • Loading branch information
niftylettuce committed May 17, 2021
1 parent 44b593c commit 92cfda8
Show file tree
Hide file tree
Showing 5 changed files with 2,997 additions and 3,192 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![made with lass](https://img.shields.io/badge/made_with-lass-95CC28.svg)](https://lass.js.org)
[![license](https://img.shields.io/github/license/ladjs/i18n-locales.svg)](<>)
[![license](https://img.shields.io/github/license/ladjs/i18n-locales.svg)]()

> List of locales for i18n
Expand Down Expand Up @@ -383,10 +383,10 @@ Use [country-language][] or [@cospired/i18n-iso-languages](https://github.com/co
[MIT](LICENSE) © [Nick Baugh](http://niftylettuce.com/)


##
##

[npm]: https://www.npmjs.com/

[yarn]: https://yarnpkg.com/

[country-language]: https://github.com/bdswiss/country-language
[country-language]: https://github.com/ladjs/country-language
2 changes: 1 addition & 1 deletion locales.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const countryLanguage = require('country-language');
const countryLanguage = require('@ladjs/country-language');

const codes = countryLanguage.getLanguageCodes();
const locales = codes.reduce((acc, code) => {
Expand Down
39 changes: 21 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,26 @@
"Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)"
],
"dependencies": {
"country-language": "^0.1.7"
"@ladjs/country-language": "^0.2.1"
},
"devDependencies": {
"ava": "^2.4.0",
"codecov": "^3.6.1",
"cross-env": "^6.0.3",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.9.0",
"eslint-plugin-prettier": "^3.1.2",
"ava": "^3.15.0",
"codecov": "^3.8.2",
"cross-env": "^7.0.3",
"eslint": "^7.26.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"husky": "3.x",
"lint-staged": "^10.0.2",
"nyc": "^15.0.0",
"prettier": "^1.19.1",
"remark-cli": "^7.0.1",
"remark-preset-github": "^0.0.16",
"xo": "^0.25.3"
"lint-staged": "^11.0.0",
"nyc": "^15.1.0",
"prettier": "^2.3.0",
"remark-cli": "^9.0.0",
"remark-preset-github": "^4.0.1",
"xo": "^0.40.1"
},
"files": [
"index.json"
],
"homepage": "https://github.com/ladjs/i18n-locales",
"keywords": [
"i18n-locales",
Expand All @@ -45,9 +48,6 @@
]
},
"main": "index.json",
"files": [
"index.json"
],
"nyc": {
"check-coverage": true,
"lines": 100,
Expand All @@ -69,8 +69,8 @@
"url": "https://github.com/ladjs/i18n-locales"
},
"scripts": {
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
"build": "node build",
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
"lint": "xo && remark . -qfo && npm run build",
"precommit": "lint-staged && npm test",
"test": "npm run lint && npm run test-coverage",
Expand Down Expand Up @@ -102,7 +102,10 @@
],
"capitalized-comments": "off",
"camelcase": "off",
"no-warning-comments": "off"
"no-warning-comments": "off",
"unicorn/prefer-module": "off",
"import/extensions": "off",
"unicorn/no-array-reduce": "off"
},
"space": true
}
Expand Down
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ const test = require('ava');

const locales = require('..');

test('returns an array', t => {
test('returns an array', (t) => {
t.true(Array.isArray(locales));
});
Loading

0 comments on commit 92cfda8

Please # to comment.