Skip to content

Commit

Permalink
Update Korean Translations for Before/After Context (#858)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Minku-Koo authored Dec 4, 2024
1 parent 6205754 commit 09d815a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/pendulum/locales/ko/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

translations = {
# Relative time
"after": "{0} ",
"before": "{0} ",
"after": "{0} ",
"before": "{0} ",
# Date formats
"date_formats": {
"LTS": "A h시 m분 s초",
Expand Down
4 changes: 2 additions & 2 deletions tests/localization/test_ko.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ def diff_for_humans():

d = pendulum.now().add(seconds=1)
d2 = pendulum.now()
assert d.diff_for_humans(d2, locale=locale) == "1초 "
assert d2.diff_for_humans(d, locale=locale) == "1초 "
assert d.diff_for_humans(d2, locale=locale) == "1초 "
assert d2.diff_for_humans(d, locale=locale) == "1초 "

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

0 comments on commit 09d815a

Please sign in to comment.