Skip to content

Commit

Permalink
Modifying Spelling 제작년, Remove poorly used expressions (#1181)
Browse files Browse the repository at this point in the history
* Modifying Spelling `제작년`, Remove poorly used expressions

* add test Modifying Spelling `제작년`, Remove poorly used expressions

---------

Co-authored-by: Jad Chaar <[email protected]>
  • Loading branch information
yangs1202 and jadchaar authored Oct 19, 2024
1 parent 714db9c commit cbe4949
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions arrow/locales.py
Original file line number Diff line number Diff line change
Expand Up @@ -1140,7 +1140,6 @@ class KoreanLocale(Locale):
}

special_dayframes = {
-3: "그끄제",
-2: "그제",
-1: "어제",
1: "내일",
Expand All @@ -1149,7 +1148,7 @@ class KoreanLocale(Locale):
4: "그글피",
}

special_yearframes = {-2: "제작년", -1: "작년", 1: "내년", 2: "내후년"}
special_yearframes = {-2: "재작년", -1: "작년", 1: "내년", 2: "내후년"}

month_names = [
"",
Expand Down
4 changes: 2 additions & 2 deletions tests/test_locales.py
Original file line number Diff line number Diff line change
Expand Up @@ -2390,14 +2390,14 @@ def test_format_relative(self):
assert self.locale._format_relative("2시간", "hours", -2) == "2시간 전"
assert self.locale._format_relative("하루", "day", -1) == "어제"
assert self.locale._format_relative("2일", "days", -2) == "그제"
assert self.locale._format_relative("3일", "days", -3) == "그끄제"
assert self.locale._format_relative("3일", "days", -3) == "3일 전"
assert self.locale._format_relative("4일", "days", -4) == "4일 전"
assert self.locale._format_relative("1주", "week", -1) == "1주 전"
assert self.locale._format_relative("2주", "weeks", -2) == "2주 전"
assert self.locale._format_relative("한달", "month", -1) == "한달 전"
assert self.locale._format_relative("2개월", "months", -2) == "2개월 전"
assert self.locale._format_relative("1년", "year", -1) == "작년"
assert self.locale._format_relative("2년", "years", -2) == "제작년"
assert self.locale._format_relative("2년", "years", -2) == "재작년"
assert self.locale._format_relative("3년", "years", -3) == "3년 전"

def test_ordinal_number(self):
Expand Down

0 comments on commit cbe4949

Please sign in to comment.