Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Updating CLDR data #941

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 23 additions & 10 deletions dateparser/data/date_translation_data/af.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@
],
"second": [
"s",
"sek",
"sekonde"
],
"relative-type": {
Expand All @@ -123,39 +122,48 @@
"hierdie minuut"
],
"0 month ago": [
"hierdie md",
"vandeesmaand"
],
"0 second ago": [
"nou"
],
"0 week ago": [
"vandeesweek"
"hierdie w",
"hierdie week"
],
"0 year ago": [
"hierdie j",
"hierdie jaar"
],
"1 day ago": [
"gister"
],
"1 month ago": [
"verlede maand"
"verlede maand",
"verlede md"
],
"1 week ago": [
"verlede w",
"verlede week"
],
"1 year ago": [
"verlede j",
"verlede jaar"
],
"in 1 day": [
"môre"
],
"in 1 month": [
"volgende maand"
"volgende maand",
"volgende md"
],
"in 1 week": [
"volgende w",
"volgende week"
],
"in 1 year": [
"volgende j",
"volgende jaar"
]
},
Expand All @@ -165,6 +173,7 @@
"(\\d+) dag gelede"
],
"\\1 hour ago": [
"(\\d+) u gelede",
"(\\d+) uur gelede"
],
"\\1 minute ago": [
Expand All @@ -178,7 +187,7 @@
"(\\d+) md gelede"
],
"\\1 second ago": [
"(\\d+) sek gelede",
"(\\d+) s gelede",
"(\\d+) sekonde gelede",
"(\\d+) sekondes gelede"
],
Expand All @@ -188,26 +197,29 @@
"(\\d+) weke gelede"
],
"\\1 year ago": [
"(\\d+) j gelede",
"(\\d+) jaar gelede"
],
"in \\1 day": [
"oor (\\d+) dae",
"oor (\\d+) dag",
"oor (\\d+) minuut"
"oor (\\d+) dag"
],
"in \\1 hour": [
"oor (\\d+) u",
"oor (\\d+) uur"
],
"in \\1 minute": [
"oor (\\d+) min",
"oor (\\d+) minute",
"oor (\\d+) minuut"
],
"in \\1 month": [
"oor (\\d+) md",
"oor (\\d+) minuut"
"oor (\\d+) maand",
"oor (\\d+) maande",
"oor (\\d+) md"
],
"in \\1 second": [
"oor (\\d+) sek",
"oor (\\d+) s",
"oor (\\d+) sekonde",
"oor (\\d+) sekondes"
],
Expand All @@ -217,6 +229,7 @@
"oor (\\d+) weke"
],
"in \\1 year": [
"oor (\\d+) j",
"oor (\\d+) jaar"
]
},
Expand Down
3 changes: 1 addition & 2 deletions dateparser/data/date_translation_data/ar.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,7 @@
"أيلول"
],
"october": [
"تشرين الأول",
"تشرین الأول"
"تشرين الأول"
],
"november": [
"تشرين الثاني"
Expand Down
96 changes: 71 additions & 25 deletions dateparser/data/date_translation_data/as.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
info = {
"name": "as",
"date_order": "YMD",
"date_order": "DMY",
"january": [
"জানু",
"জানুৱাৰী"
Expand All @@ -16,7 +16,7 @@
"এপ্ৰিল"
],
"may": [
"মে"
"মে'"
],
"june": [
"জুন"
Expand All @@ -29,20 +29,20 @@
"আগষ্ট"
],
"september": [
"ছেপ্তেম্বৰ",
"সেপ্ট"
"ছেপ্তে",
"ছেপ্তেম্বৰ"
],
"october": [
"অক্টো",
"অক্টোবৰ"
],
"november": [
"নভে",
"নৱে",
"নৱেম্বৰ"
],
"december": [
"ডিচেম্বৰ",
"ডিসে"
"ডিচে",
"ডিচেম্বৰ"
],
"monday": [
"সোম",
Expand All @@ -57,8 +57,8 @@
"বুধবাৰ"
],
"thursday": [
"বৃহষ্পতি",
"বৃহষ্পতিবাৰ"
"বৃহ",
"বৃহস্পতিবাৰ"
],
"friday": [
"শুক্ৰ",
Expand All @@ -69,14 +69,14 @@
"শনিবাৰ"
],
"sunday": [
"দেওবাৰ",
"ৰবি"
"দেও",
"দেওবাৰ"
],
"am": [
"পূৰ্বাহ্ণ"
"পূৰ্বাহ্ন"
],
"pm": [
"অপৰাহ্ণ"
"অপৰাহ্ন"
],
"year": [
"বছৰ"
Expand Down Expand Up @@ -104,46 +104,92 @@
"আজি"
],
"0 hour ago": [
"this hour"
"এইটো ঘণ্টাত"
],
"0 minute ago": [
"this minute"
"এইটো মিনিটত"
],
"0 month ago": [
"this month"
"এই মা",
"এই মাহ"
],
"0 second ago": [
"now"
"এতিয়া"
],
"0 week ago": [
"this week"
"এই সপ্তাহ"
],
"0 year ago": [
"this year"
"এই বছৰ"
],
"1 day ago": [
"কালি"
],
"1 month ago": [
"last month"
"যোৱা মা",
"যোৱা মাহ"
],
"1 week ago": [
"last week"
"যোৱা সপ্তাহ"
],
"1 year ago": [
"last year"
"যোৱা বছৰ"
],
"in 1 day": [
"কাইলৈ"
],
"in 1 month": [
"next month"
"অহা মাহ"
],
"in 1 week": [
"next week"
"অহা সপ্তাহ"
],
"in 1 year": [
"next year"
"অহা বছৰ"
]
},
"relative-type-regex": {
"\\1 day ago": [
"(\\d+) দিন পূৰ্বে"
],
"\\1 hour ago": [
"(\\d+) ঘণ্টা পূৰ্বে"
],
"\\1 minute ago": [
"(\\d+) মিনিট পূৰ্বে"
],
"\\1 month ago": [
"(\\d+) মাহ পূৰ্বে"
],
"\\1 second ago": [
"(\\d+) ছেকেণ্ড পূৰ্বে"
],
"\\1 week ago": [
"(\\d+) সপ্তাহ পূৰ্বে"
],
"\\1 year ago": [
"(\\d+) বছৰৰ পূৰ্বে"
],
"in \\1 day": [
"(\\d+) দিনত"
],
"in \\1 hour": [
"(\\d+) ঘণ্টাত"
],
"in \\1 minute": [
"(\\d+) মিনিটত"
],
"in \\1 month": [
"(\\d+) মাহত"
],
"in \\1 second": [
"(\\d+) ছেকেণ্ডত"
],
"in \\1 week": [
"(\\d+) সপ্তাহত"
],
"in \\1 year": [
"(\\d+) বছৰত"
]
},
"locale_specific": {},
Expand Down
6 changes: 2 additions & 4 deletions dateparser/data/date_translation_data/az-Latn.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,11 @@
],
"june": [
"iyn",
"iyun",
"i̇yun"
"iyun"
],
"july": [
"iyl",
"iyul",
"i̇yul"
"iyul"
],
"august": [
"avq",
Expand Down
6 changes: 2 additions & 4 deletions dateparser/data/date_translation_data/az.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,11 @@
],
"june": [
"iyn",
"iyun",
"i̇yun"
"iyun"
],
"july": [
"iyl",
"iyul",
"i̇yul"
"iyul"
],
"august": [
"avq",
Expand Down
Loading