Skip to content

Commit 09d815a

Browse files
authoredDec 4, 2024
Update Korean Translations for Before/After Context (#858)
* Translation update: fixed Korean before/after translations. Translation update: fixed Korean before/after translations. * Fix: Update test expectation for `diff_for_humans` - Updated the expected output in 'test_diff_for_humans' to "1초 후" for consistency with the implementation. - This resolves the mismatch between the test expectation and the actual output of 'diff_for_humans'. * test: swap "뒤" and "앞" in test descriptions
1 parent 6205754 commit 09d815a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎src/pendulum/locales/ko/custom.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
translations = {
88
# Relative time
9-
"after": "{0} ",
10-
"before": "{0} ",
9+
"after": "{0} ",
10+
"before": "{0} ",
1111
# Date formats
1212
"date_formats": {
1313
"LTS": "A h시 m분 s초",

‎tests/localization/test_ko.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ def diff_for_humans():
5959

6060
d = pendulum.now().add(seconds=1)
6161
d2 = pendulum.now()
62-
assert d.diff_for_humans(d2, locale=locale) == "1초 "
63-
assert d2.diff_for_humans(d, locale=locale) == "1초 "
62+
assert d.diff_for_humans(d2, locale=locale) == "1초 "
63+
assert d2.diff_for_humans(d, locale=locale) == "1초 "
6464

6565
assert d.diff_for_humans(d2, True, locale=locale) == "1초"
6666
assert d2.diff_for_humans(d.add(seconds=1), True, locale=locale) == "2초"

0 commit comments

Comments
 (0)