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

Modifying Spelling 제작년, Remove poorly used expressions #1181

Merged
merged 4 commits into from
Oct 19, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading