World countries in JSON, CSV, XML and Yaml. Any help is welcome!
translations
alphabetically (#384)Eastern Europe
for Slovakia (#413)files
in package.json
to reduce package size (#388)callingCodes
) from international direct dialing info (idd
) (#389)demonym
into demonyms
(https://github.com/mledoze/countries/pull/369)demonym
(https://github.com/mledoze/countries/pull/369)Before
"demonym": "Irish",
...
"demonyms": {
"fra": {
"f": "Irlandaise",
"m": "Irlandais"
}
}
After
"demonyms": {
"eng": {
"f": "Irish",
"m": "Irish"
},
"fra": {
"f": "Irlandaise",
"m": "Irlandais"
}
}
currency
to currencies
currencies
property: it is now an object with currency code as keys. The value is an object with name
and symbol
properties.Before
"currency": ["SHP", "GBP"]
After
"currencies": {
"GBP": {
"name": "Pound sterling",
"symbol": "\u00a3"
},
"SHP": {
"name": "Saint Helena pound",
"symbol": "\u00a3"
}
}
idd
property); example:"idd": {
"root": "+2",
"suffixes": [
"90",
"47"
]
}
sovereing
with sovereign
[G]
in currency codes(none)
with empty stringsadded Czech translations added Polish translations added missing Croatian translation for Sint Maarten
replaced "Northern America" by "North America" removed fund codes from currencies renamed Swaziland to Eswatini revised some German translations fixed Vatican City demonym fixed Macau demonym fixed some Unicode typos fixed type of 'name.native' when property is empty fixed official and common country name of Korea fixed official and native name of the Netherlands (#277)
fixed output message when converting with specific format(s) (#281)
formatted code to comply with PSR2 coding standard
removed Hungarian notation in PHP Code
moved dependency roave/security-advisories
to require-dev section
added badge for PHP minimum version added scrutinizer badge
This project now requires the latest version of PHP 5, which is 5.6.33. This will be the last release to support PHP 5. The next major release (v3.0.0) will require PHP 7.2.
changed type of property capitals
from string
to array
to support countries with multiple capitals
changed semicolon to comma for CSV format (see https://github.com/mledoze/countries/blob/e2de3c46402c2b7a90d30fa1d6d1151e97420992/dist/countries.csv)
moved SHN and BES divisions back into the main countries.json
as two separate entries; also removed files data/shn.divisions.json
and data/bes.divisions.json
removed region specific languages (see #181)
removed South Sudan from Chad's neighbours
added ISO 3166-1 independence status (property independent
)
added ISO 3166-1 assignment status (property status
)
added TopoJSON formatted files for each country
added Estonian translations
added Guiana demonym for French French Guiana
added three new options: --include-field
, --format
and --output-dir
(thank you @emilv)
added Travis CI to automatically validate new pull requests
updated dependencies:
>=5.5.9
=> >=5.6.33
)v3.1.3
=> v4.0.4
)v3.1.3
=> v4.0.4
)added "The Netherlands" as alternate spelling of Netherlands
added CKD as currency of Cook Islands
added "Antarctic" region for multiple countries
added latitude and longitude data for United States Minor Outlying Islands
updated alternative spellings of Cocos (Keeling) Islands
updated official languages of Armenia
removed province of China
and use Traditional Chinese instead of Simplified Chinese
fixed capital of Ukraine
fixed non-existing slk language
fixed land borders for China, Cyprus, Chad, Egypt, India, Jordan and Israel
fixed Russian translation of Mexico
fixed existing official names in Welsh
fixed Russia native official name according to en.wikipedia.org/wiki/Russia
fixed Czech Republic short names
fixed Slovakian translation ISO code
fixed subregion field for Mexico
fixed altSpellings field for Belarus
fixed country name and currency code for Belarus
changed licence label to "ODC Open Database License v1.0" to comply with SPDX names
add Slovak translations add Chinese translations add Dutch translation for Kosovo add German translations for Kosovo and Curaçao
add composer.lock file to prevent dependencies issues allow setting a custom command name
fix native name for Nepal (from https://github.com/fayder/restcountries/pull/23)
change demonym for Argentina to Argentine
fix demonym for Christmas Island
fix subregion in Slovak Republic
replace all "cmn" with "zho"
replaced Kosovo's International Olympic Committee code by ISO 3166-1 alpha-3 code in land borders array
added missing French translations for Kosovo and Curaçao.
Fix languages
key not being excluded with JSON converter (#162)