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

Use versioned CLDR data. #830

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 1 addition & 2 deletions dateparser/data/date_translation_data/af.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,7 @@
],
"in \\1 day": [
"oor (\\d+) dae",
"oor (\\d+) dag",
"oor (\\d+) minuut"
"oor (\\d+) dag"
],
"in \\1 hour": [
"oor (\\d+) uur"
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
90 changes: 67 additions & 23 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,8 +69,8 @@
"শনিবাৰ"
],
"sunday": [
"দেওবাৰ",
"ৰবি"
"দেও",
"দেওবাৰ"
],
"am": [
"পূৰ্বাহ্ণ"
Expand Down Expand Up @@ -104,46 +104,90 @@
"আজি"
],
"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
2 changes: 0 additions & 2 deletions dateparser/data/date_translation_data/be.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@
},
"relative-type-regex": {
"\\1 day ago": [
"(\\d+) д таму",
"(\\d+) дзень таму",
"(\\d+) дня таму"
],
Expand Down Expand Up @@ -251,7 +250,6 @@
"(\\d+) года таму"
],
"in \\1 day": [
"праз (\\d+) д",
"праз (\\d+) дзень",
"праз (\\d+) дня"
],
Expand Down
2 changes: 1 addition & 1 deletion dateparser/data/date_translation_data/bg.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"години"
],
"month": [
"м",
"мес",
"месец",
"мес",
"месеци"
Expand Down
5 changes: 2 additions & 3 deletions dateparser/data/date_translation_data/bn.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"দিন"
],
"hour": [
"ঘন্টা"
"ঘণ্টা"
],
"minute": [
"মিনিট"
Expand Down Expand Up @@ -160,8 +160,7 @@
"(\\d+) ঘন্টা আগে"
],
"\\1 minute ago": [
"(\\d+) মিনিট আগে",
"(\\d+) মিনিট পূর্বে"
"(\\d+) মিনিট আগে"
],
"\\1 month ago": [
"(\\d+) মাস আগে"
Expand Down
8 changes: 4 additions & 4 deletions dateparser/data/date_translation_data/bs-Cyrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"јули"
],
"august": [
"авг",
"август"
"ауг",
"аугуст"
],
"september": [
"сеп",
Expand All @@ -50,7 +50,7 @@
],
"monday": [
"пон",
"понедељак"
"понедјељак"
],
"tuesday": [
"уто",
Expand All @@ -74,7 +74,7 @@
],
"sunday": [
"нед",
"недеља"
"недјеља"
],
"am": [
"пре подне"
Expand Down
Loading