From 030d9a1e708a7b2c02881c088f17a7b1fa1f6a87 Mon Sep 17 00:00:00 2001 From: Phuc YNWA <32135551+phucynwa@users.noreply.github.com> Date: Sun, 12 Jul 2026 13:20:20 +0700 Subject: [PATCH 1/2] Update timeInFuture to match Vietnamese grammar --- .../nl/jacobras/humanreadable/i18n/translations/ViStrings.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commonMain/kotlin/nl/jacobras/humanreadable/i18n/translations/ViStrings.kt b/src/commonMain/kotlin/nl/jacobras/humanreadable/i18n/translations/ViStrings.kt index edcc8ce..87c4b0e 100644 --- a/src/commonMain/kotlin/nl/jacobras/humanreadable/i18n/translations/ViStrings.kt +++ b/src/commonMain/kotlin/nl/jacobras/humanreadable/i18n/translations/ViStrings.kt @@ -31,7 +31,7 @@ internal val ViStrings = HumanReadableStrings( monthsNarrow = presentTense(other = "tháng"), yearsNarrow = presentTense(other = "năm"), timeAgo = { "$it trước" }, - timeInFuture = { "sau $it" }, + timeInFuture = { "$it nữa" }, now = "bây giờ", today = "hôm nay", yesterday = "hôm qua", From d8f804029345c22164b9828352cfafb26f75b365 Mon Sep 17 00:00:00 2001 From: Jacob Ras Date: Wed, 22 Jul 2026 20:42:05 +0200 Subject: [PATCH 2/2] Fix `vi_vietnamese()` test --- .../nl/jacobras/humanreadable/localized/LocalisedTests.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commonTest/kotlin/nl/jacobras/humanreadable/localized/LocalisedTests.kt b/src/commonTest/kotlin/nl/jacobras/humanreadable/localized/LocalisedTests.kt index 050c082..6e084f7 100644 --- a/src/commonTest/kotlin/nl/jacobras/humanreadable/localized/LocalisedTests.kt +++ b/src/commonTest/kotlin/nl/jacobras/humanreadable/localized/LocalisedTests.kt @@ -363,7 +363,7 @@ class LocalisedTests { assertThat(HumanReadable.duration(twoSeconds)).isEqualTo("2 giây") assertThat(HumanReadable.timeAgo(twoSecondsAgo, baseInstant = now)).isEqualTo("2 giây trước") - assertThat(HumanReadable.timeAgo(oneMinuteFromNow, baseInstant = now)).isEqualTo("sau 1 phút") + assertThat(HumanReadable.timeAgo(oneMinuteFromNow, baseInstant = now)).isEqualTo("1 phút nữa") assertThat(HumanReadable.number(1_000_000.34, decimals = 2)).isEqualTo("1.000.000,34") assertThat(HumanReadable.number(-4.34, decimals = 2)).isEqualTo("-4,34")