Skip to content

Commit

Permalink
Move modification in CLDR data to yaml (#1153)
Browse files Browse the repository at this point in the history
  • Loading branch information
RadhiFadlillah authored Mar 16, 2023
1 parent 4749e3e commit b368edd
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 24 deletions.
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

0 comments on commit b368edd

Please sign in to comment.