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

Update the CLDR data #1216

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,8 @@ docs/_build
.idea
.vscode/

# CLDR
/cldr-json/

# Other
raw_data
122 changes: 122 additions & 0 deletions dateparser/data/date_translation_data/aa.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
info = {
"name": "aa",
"date_order": "YMD",
"monday": [
"mon"
],
"tuesday": [
"tue"
],
"wednesday": [
"wed"
],
"thursday": [
"thu"
],
"friday": [
"fri"
],
"saturday": [
"sat"
],
"sunday": [
"sun"
],
"am": [
"am"
],
"pm": [
"pm"
],
"year": [
"year"
],
"month": [
"month"
],
"week": [
"week"
],
"day": [
"day"
],
"hour": [
"hour",
"hr"
],
"minute": [
"minute"
],
"second": [
"second"
],
"relative-type": {
"0 day ago": [
"today"
],
"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": [
"yesterday"
],
"1 month ago": [
"last month"
],
"1 week ago": [
"last week"
],
"1 year ago": [
"last year"
],
"in 1 day": [
"tomorrow"
],
"in 1 month": [
"next month"
],
"in 1 week": [
"next week"
],
"in 1 year": [
"next year"
]
},
"locale_specific": {
"aa-DJ": {
"name": "aa-DJ"
},
"aa-ER": {
"name": "aa-ER"
}
},
"skip": [
" ",
"'",
",",
"-",
".",
"/",
";",
"@",
"[",
"]",
"|",
","
]
}
115 changes: 115 additions & 0 deletions dateparser/data/date_translation_data/ab.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
info = {
"name": "ab",
"date_order": "YMD",
"monday": [
"mon"
],
"tuesday": [
"tue"
],
"wednesday": [
"wed"
],
"thursday": [
"thu"
],
"friday": [
"fri"
],
"saturday": [
"sat"
],
"sunday": [
"sun"
],
"am": [
"am"
],
"pm": [
"pm"
],
"year": [
"year"
],
"month": [
"month"
],
"week": [
"week"
],
"day": [
"day"
],
"hour": [
"hour",
"hr"
],
"minute": [
"minute"
],
"second": [
"second"
],
"relative-type": {
"0 day ago": [
"today"
],
"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": [
"yesterday"
],
"1 month ago": [
"last month"
],
"1 week ago": [
"last week"
],
"1 year ago": [
"last year"
],
"in 1 day": [
"tomorrow"
],
"in 1 month": [
"next month"
],
"in 1 week": [
"next week"
],
"in 1 year": [
"next year"
]
},
"locale_specific": {},
"skip": [
" ",
"'",
",",
"-",
".",
"/",
";",
"@",
"[",
"]",
"|",
","
]
}
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+[.,]?\\d*) dag gelede"
],
"\\1 hour ago": [
"(\\d+[.,]?\\d*) u gelede",
"(\\d+[.,]?\\d*) uur gelede"
],
"\\1 minute ago": [
Expand All @@ -178,7 +187,7 @@
"(\\d+[.,]?\\d*) md gelede"
],
"\\1 second ago": [
"(\\d+[.,]?\\d*) sek gelede",
"(\\d+[.,]?\\d*) s gelede",
"(\\d+[.,]?\\d*) sekonde gelede",
"(\\d+[.,]?\\d*) sekondes gelede"
],
Expand All @@ -188,26 +197,29 @@
"(\\d+[.,]?\\d*) weke gelede"
],
"\\1 year ago": [
"(\\d+[.,]?\\d*) j gelede",
"(\\d+[.,]?\\d*) jaar gelede"
],
"in \\1 day": [
"oor (\\d+[.,]?\\d*) dae",
"oor (\\d+[.,]?\\d*) dag",
"oor (\\d+[.,]?\\d*) minuut"
"oor (\\d+[.,]?\\d*) dag"
],
"in \\1 hour": [
"oor (\\d+[.,]?\\d*) u",
"oor (\\d+[.,]?\\d*) uur"
],
"in \\1 minute": [
"oor (\\d+[.,]?\\d*) min",
"oor (\\d+[.,]?\\d*) minute",
"oor (\\d+[.,]?\\d*) minuut"
],
"in \\1 month": [
"oor (\\d+[.,]?\\d*) md",
"oor (\\d+[.,]?\\d*) minuut"
"oor (\\d+[.,]?\\d*) maand",
"oor (\\d+[.,]?\\d*) maande",
"oor (\\d+[.,]?\\d*) md"
],
"in \\1 second": [
"oor (\\d+[.,]?\\d*) sek",
"oor (\\d+[.,]?\\d*) s",
"oor (\\d+[.,]?\\d*) sekonde",
"oor (\\d+[.,]?\\d*) sekondes"
],
Expand All @@ -217,6 +229,7 @@
"oor (\\d+[.,]?\\d*) weke"
],
"in \\1 year": [
"oor (\\d+[.,]?\\d*) j",
"oor (\\d+[.,]?\\d*) jaar"
]
},
Expand Down
1 change: 1 addition & 0 deletions dateparser/data/date_translation_data/agq.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
"utsuʔ"
],
"hour": [
"hr",
"tàm"
],
"minute": [
Expand Down
3 changes: 2 additions & 1 deletion dateparser/data/date_translation_data/ak.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@
"da"
],
"hour": [
"dɔnhwer"
"dɔnhwer",
"hr"
],
"minute": [
"sema"
Expand Down
Loading
Loading