From e1bcd314bd20811dc403eb70ab7a4e9b25e9e98d Mon Sep 17 00:00:00 2001 From: Minku Koo Date: Wed, 6 Nov 2024 00:09:34 +0900 Subject: [PATCH 1/3] Translation update: fixed Korean before/after translations. Translation update: fixed Korean before/after translations. --- src/pendulum/locales/ko/custom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pendulum/locales/ko/custom.py b/src/pendulum/locales/ko/custom.py index b7476ff8..c3546b7e 100644 --- a/src/pendulum/locales/ko/custom.py +++ b/src/pendulum/locales/ko/custom.py @@ -6,8 +6,8 @@ translations = { # Relative time - "after": "{0} 뒤", - "before": "{0} 앞", + "after": "{0} 후", + "before": "{0} 전", # Date formats "date_formats": { "LTS": "A h시 m분 s초", From 51ae79fb5a89a193e4fa9ee79cddf759dc8d09e8 Mon Sep 17 00:00:00 2001 From: Minku Koo Date: Wed, 27 Nov 2024 22:55:18 +0900 Subject: [PATCH 2/3] Fix: Update test expectation for `diff_for_humans` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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'. --- tests/localization/test_ko.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/localization/test_ko.py b/tests/localization/test_ko.py index c03a3728..0489c680 100644 --- a/tests/localization/test_ko.py +++ b/tests/localization/test_ko.py @@ -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초" From 79b85803999d0e10b33c5a20b5548e3b50cb2074 Mon Sep 17 00:00:00 2001 From: Minku Koo Date: Tue, 3 Dec 2024 00:06:27 +0900 Subject: [PATCH 3/3] =?UTF-8?q?test:=20swap=20"=EB=92=A4"=20and=20"?= =?UTF-8?q?=EC=95=9E"=20in=20test=20descriptions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/localization/test_ko.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/localization/test_ko.py b/tests/localization/test_ko.py index 0489c680..d036f78f 100644 --- a/tests/localization/test_ko.py +++ b/tests/localization/test_ko.py @@ -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초"