Skip to content

Commit

Permalink
fix names_osm.json, add parentheses removal to download.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Marat Vyshegorodtsev committed Jul 4, 2019
1 parent 5ff1f55 commit fbe0721
Show file tree
Hide file tree
Showing 3 changed files with 6,491 additions and 214 deletions.
2 changes: 1 addition & 1 deletion bin/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function downloadWikipedia() {
if(page && Array.isArray(page.langlinks)) {
for(let langEntry of page.langlinks) {
if(supportedLanguages.indexOf(langEntry.lang) >= 0)
wiki[key].names[langEntry.lang] = langEntry['*']
wiki[key].names[langEntry.lang] = langEntry['*'].replace(/\s*\(.*\)\s*$/, '')
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions data/iso3166-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -14385,8 +14385,8 @@
"es": "China",
"fr": "Chine",
"it": "Cina",
"ru": "Китай",
"zh": "中国",
"ru": "Китайская цивилизация",
"zh": "中國",
"he": "סין",
"hi": "चीन",
"ja": "中国",
Expand Down Expand Up @@ -89863,7 +89863,7 @@
"es": "Islas Vírgenes Británicas",
"fr": "Îles Vierges britanniques",
"it": "Isole Vergini britanniche",
"ru": "Виргинские Острова (Великобритания)",
"ru": "Британские Виргинские Острова",
"zh": "英屬維爾京群島",
"he": "איי הבתולה הבריטיים",
"hi": "ब्रिटिश वर्जिन द्वीपसमूह",
Expand All @@ -89890,7 +89890,7 @@
"es": "Islas Vírgenes de los Estados Unidos",
"fr": "Îles Vierges des États-Unis",
"it": "Isole Vergini americane",
"ru": "Виргинские Острова (США)",
"ru": "Американские Виргинские Острова",
"zh": "美屬維爾京群島",
"he": "איי הבתולה של ארצות הברית",
"hi": "संयुक्त राज्य वर्जिन द्वीपसमूह",
Expand Down
Loading

0 comments on commit fbe0721

Please sign in to comment.