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

Move modification in CLDR data to yaml #1153

Merged
merged 1 commit into from
Mar 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions dateparser/data/date_translation_data/de.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
],
"september": [
"sep",
"sept",
"september"
"september",
"Sept"
],
"october": [
"okt",
Expand Down
13 changes: 9 additions & 4 deletions dateparser/data/date_translation_data/zh-Hans.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
"今天"
],
"0 hour ago": [
"这一时间 / 此时",
"这一时间",
"此时"
],
Expand All @@ -120,7 +121,8 @@
"本月"
],
"0 second ago": [
"现在"
"现在",
"刚刚"
],
"0 week ago": [
"本周"
Expand All @@ -143,9 +145,6 @@
"in 1 day": [
"明天"
],
"in 2 days": [
"后天"
],
"in 1 month": [
"下个月"
],
Expand All @@ -154,6 +153,12 @@
],
"in 1 year": [
"明年"
],
"2 day ago": [
"前天"
],
"in 2 days": [
"后天"
]
},
"relative-type-regex": {
Expand Down
7 changes: 4 additions & 3 deletions dateparser/data/date_translation_data/zh.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
"今天"
],
"0 hour ago": [
"这一时间 / 此时",
"这一时间",
"此时"
],
Expand Down Expand Up @@ -157,9 +158,6 @@
"in 1 day": [
"明天"
],
"in 2 days": [
"后天"
],
"in 1 month": [
"下个月"
],
Expand All @@ -171,6 +169,9 @@
],
"2 day ago": [
"前天"
],
"in 2 days": [
"后天"
]
},
"relative-type-regex": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
],
"september": [
"sep",
"sept",
"september"
],
"october": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,4 +258,4 @@
]
},
"locale_specific": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@
"今天"
],
"0 hour ago": [
"这一时间",
"此时"
"这一时间 / 此时"
],
"0 minute ago": [
"此刻"
Expand Down Expand Up @@ -143,9 +142,6 @@
"in 1 day": [
"明天"
],
"in 2 days": [
"后天"
],
"in 1 month": [
"下个月"
],
Expand Down Expand Up @@ -216,4 +212,4 @@
"date_order": "DMY"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@
"今天"
],
"0 hour ago": [
"这一时间",
"此时"
"这一时间 / 此时"
],
"0 minute ago": [
"此刻"
Expand Down Expand Up @@ -143,9 +142,6 @@
"in 1 day": [
"明天"
],
"in 2 days": [
"后天"
],
"in 1 month": [
"下个月"
],
Expand Down Expand Up @@ -203,4 +199,4 @@
]
},
"locale_specific": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ february:
- Feber
march:
- Mrz
september:
- Sept

year:
- Jahre
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
no_word_spacing: "True"

sentence_splitter_group : 4

relative-type:
2 day ago:
- 前天
0 second ago:
- 刚刚
0 hour ago:
- 这一时间
- 此时
in 2 days:
- 后天
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,13 @@ in:
relative-type:
2 day ago:
- 前天
"0 second ago":
0 second ago:
- 刚刚
0 hour ago:
- 这一时间
- 此时
in 2 days:
- 后天

simplifications:
- 半小时前: 30分前
Expand Down