Skip to content

Commit 068285d

Browse files
committed
Update translations
1 parent dc50f17 commit 068285d

22 files changed

Lines changed: 378 additions & 39 deletions

src/commonMain/kotlin/nl/jacobras/humanreadable/i18n/HumanReadableStrings.kt

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,21 @@ internal data class DateTimeStrings(
2929
val monthsLong: TenseForms,
3030
val yearsLong: TenseForms,
3131

32-
// TODO: remove defaults
33-
val secondsShort: TenseForms = presentTense(one = "hr"),
34-
val minutesShort: TenseForms = presentTense(one = "h"),
35-
val hoursShort: TenseForms = presentTense(one = "day", other = "days"),
36-
val daysShort: TenseForms = presentTense(one = "day", other = "days"),
37-
val weeksShort: TenseForms = presentTense(one = "d"),
38-
val monthsShort: TenseForms = presentTense(one = "week", other = "weeks"),
39-
val yearsShort: TenseForms = presentTense(one = "wk", other = "wks"),
32+
val secondsShort: TenseForms,
33+
val minutesShort: TenseForms,
34+
val hoursShort: TenseForms,
35+
val daysShort: TenseForms,
36+
val weeksShort: TenseForms,
37+
val monthsShort: TenseForms,
38+
val yearsShort: TenseForms,
4039

41-
// TODO: remove defaults
42-
val secondsNarrow: TenseForms = presentTense(one = "w"),
43-
val minutesNarrow: TenseForms = presentTense(one = "month", other = "months"),
44-
val hoursNarrow: TenseForms = presentTense(one = "mth", other = "mths"),
45-
val daysNarrow: TenseForms = presentTense(one = "m"),
46-
val weeksNarrow: TenseForms = presentTense(one = "year", other = "years"),
47-
val monthsNarrow: TenseForms = presentTense(one = "yr", other = "yrs"),
48-
val yearsNarrow: TenseForms = presentTense(one = "y"),
40+
val secondsNarrow: TenseForms,
41+
val minutesNarrow: TenseForms,
42+
val hoursNarrow: TenseForms,
43+
val daysNarrow: TenseForms,
44+
val weeksNarrow: TenseForms,
45+
val monthsNarrow: TenseForms,
46+
val yearsNarrow: TenseForms,
4947

5048
/**
5149
* Wraps a formatted duration as past relative time, e.g. "3 days ago".
@@ -61,8 +59,8 @@ internal data class DateTimeStrings(
6159
val today: String,
6260
val yesterday: String,
6361
val tomorrow: String,
64-
val lessThan: String = "!!TODO",
65-
val about: String = "!!TODO"
62+
val lessThan: String,
63+
val about: String
6664
)
6765

6866
/**

src/commonMain/kotlin/nl/jacobras/humanreadable/i18n/translations/ArStrings.kt

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package nl.jacobras.humanreadable.i18n.translations
22

33
import nl.jacobras.humanreadable.i18n.Plural
4+
import nl.jacobras.humanreadable.i18n.presentTense
45
import nl.jacobras.humanreadable.i18n.multipleTenses
56
import nl.jacobras.humanreadable.i18n.DateTimeStrings
67
import nl.jacobras.humanreadable.i18n.DistanceStrings
@@ -47,12 +48,28 @@ internal val ArStrings = HumanReadableStrings(
4748
present(zero = "سنة", one = "سنة", two = "سنتان", few = "سنوات", many = "سنة", other = "سنة")
4849
pastOrFuture(two = "سنتين")
4950
},
51+
secondsShort = presentTense(one = "ثانية"),
52+
minutesShort = presentTense(one = "دقيقة"),
53+
hoursShort = presentTense(one = "ساعة"),
54+
daysShort = presentTense(one = "يوم"),
55+
weeksShort = presentTense(one = "أسبوع"),
56+
monthsShort = presentTense(one = "شهر"),
57+
yearsShort = presentTense(one = "سنة"),
58+
secondsNarrow = presentTense(one = "ث"),
59+
minutesNarrow = presentTense(one = "د"),
60+
hoursNarrow = presentTense(one = "س"),
61+
daysNarrow = presentTense(one = "ي"),
62+
weeksNarrow = presentTense(one = "أ"),
63+
monthsNarrow = presentTense(one = "شهر"),
64+
yearsNarrow = presentTense(one = "سنة"),
5065
timeAgo = { "قبل $it" },
5166
timeInFuture = { "بعد $it" },
5267
now = "الآن",
5368
today = "اليوم",
5469
tomorrow = "أمس",
55-
yesterday = "غداً"
70+
yesterday = "غداً",
71+
lessThan = "أقل من",
72+
about = "حوالي"
5673
),
5774
fileSize = FileSizeStrings(
5875
byteSymbol = "ب",

src/commonMain/kotlin/nl/jacobras/humanreadable/i18n/translations/CsStrings.kt

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package nl.jacobras.humanreadable.i18n.translations
22

33
import nl.jacobras.humanreadable.i18n.Plural
4+
import nl.jacobras.humanreadable.i18n.presentTense
45
import nl.jacobras.humanreadable.i18n.multipleTenses
56
import nl.jacobras.humanreadable.i18n.DateTimeStrings
67
import nl.jacobras.humanreadable.i18n.HumanReadableStrings
@@ -46,12 +47,28 @@ internal val CsStrings = HumanReadableStrings(
4647
present(one = "rok", few = "roky", other = "let")
4748
past(one = "rokem", few = "roky", other = "lety")
4849
},
50+
secondsShort = presentTense(one = "s"),
51+
minutesShort = presentTense(one = "min"),
52+
hoursShort = presentTense(one = "h"),
53+
daysShort = presentTense(one = "d"),
54+
weeksShort = presentTense(one = "týd."),
55+
monthsShort = presentTense(one = "měs."),
56+
yearsShort = presentTense(one = "r."),
57+
secondsNarrow = presentTense(one = "s"),
58+
minutesNarrow = presentTense(one = "min"),
59+
hoursNarrow = presentTense(one = "h"),
60+
daysNarrow = presentTense(one = "d"),
61+
weeksNarrow = presentTense(one = "t"),
62+
monthsNarrow = presentTense(one = "m"),
63+
yearsNarrow = presentTense(one = "r"),
4964
timeAgo = { "před $it" },
5065
timeInFuture = { "za $it" },
5166
now = "nyní",
5267
today = "dnes",
5368
yesterday = "včera",
54-
tomorrow = "zítra"
69+
tomorrow = "zítra",
70+
lessThan = "méně než",
71+
about = "přibližně"
5572
),
5673
number = NumberStrings(groupSeparator = " ", decimalSymbol = ",")
5774
)

src/commonMain/kotlin/nl/jacobras/humanreadable/i18n/translations/DeStrings.kt

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,28 @@ internal val DeStrings = HumanReadableStrings(
2626
present(one = "Jahr", other = "Jahre")
2727
pastOrFuture(other = "Jahren")
2828
},
29+
secondsShort = presentTense(one = "Sek."),
30+
minutesShort = presentTense(one = "Min."),
31+
hoursShort = presentTense(one = "Std."),
32+
daysShort = presentTense(one = "Tg."),
33+
weeksShort = presentTense(one = "Wo."),
34+
monthsShort = presentTense(one = "Mon."),
35+
yearsShort = presentTense(one = "J."),
36+
secondsNarrow = presentTense(one = "Sek."),
37+
minutesNarrow = presentTense(one = "Min."),
38+
hoursNarrow = presentTense(one = "Std."),
39+
daysNarrow = presentTense(one = "T"),
40+
weeksNarrow = presentTense(one = "Wo."),
41+
monthsNarrow = presentTense(one = "M"),
42+
yearsNarrow = presentTense(one = "J"),
2943
timeAgo = { "vor $it" },
3044
timeInFuture = { "in $it" },
3145
now = "jetzt",
3246
today = "heute",
3347
yesterday = "gestern",
34-
tomorrow = "morgen"
48+
tomorrow = "morgen",
49+
lessThan = "weniger als",
50+
about = "etwa"
3551
),
3652
number = NumberStrings(groupSeparator = ".", decimalSymbol = ",")
3753
)

src/commonMain/kotlin/nl/jacobras/humanreadable/i18n/translations/ElStrings.kt

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,28 @@ internal val ElStrings = HumanReadableStrings(
2020
pastOrFuture(one = "μήνα")
2121
},
2222
yearsLong = presentTense(one = "έτος", other = "έτη"),
23+
secondsShort = presentTense(one = "δευτ."),
24+
minutesShort = presentTense(one = "λεπ."),
25+
hoursShort = presentTense(one = "ώ."),
26+
daysShort = presentTense(one = "ημ."),
27+
weeksShort = presentTense(one = "εβδ."),
28+
monthsShort = presentTense(one = "μήν."),
29+
yearsShort = presentTense(one = "έτ."),
30+
secondsNarrow = presentTense(one = "δ"),
31+
minutesNarrow = presentTense(one = "λ"),
32+
hoursNarrow = presentTense(one = "ώ"),
33+
daysNarrow = presentTense(one = "η"),
34+
weeksNarrow = presentTense(one = "ε"),
35+
monthsNarrow = presentTense(one = "μ"),
36+
yearsNarrow = presentTense(one = "έ"),
2337
timeAgo = { "$it πριν" },
2438
timeInFuture = { "σε $it" },
2539
now = "τώρα",
2640
today = "σήμερα",
2741
yesterday = "χθες",
28-
tomorrow = "αύριο"
42+
tomorrow = "αύριο",
43+
lessThan = "λιγότερο από",
44+
about = "περίπου"
2945
),
3046
number = NumberStrings(groupSeparator = ".", decimalSymbol = ",")
3147
)

src/commonMain/kotlin/nl/jacobras/humanreadable/i18n/translations/EsStrings.kt

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,28 @@ internal val EsStrings = HumanReadableStrings(
1616
weeksLong = presentTense(one = "semana", other = "semanas"),
1717
monthsLong = presentTense(one = "mes", other = "meses"),
1818
yearsLong = presentTense(one = "año", other = "años"),
19+
secondsShort = presentTense(one = "s"),
20+
minutesShort = presentTense(one = "min"),
21+
hoursShort = presentTense(one = "h"),
22+
daysShort = presentTense(one = "d"),
23+
weeksShort = presentTense(one = "sem."),
24+
monthsShort = presentTense(one = "m."),
25+
yearsShort = presentTense(one = "a"),
26+
secondsNarrow = presentTense(one = "s"),
27+
minutesNarrow = presentTense(one = "min"),
28+
hoursNarrow = presentTense(one = "h"),
29+
daysNarrow = presentTense(one = "d"),
30+
weeksNarrow = presentTense(one = "sem."),
31+
monthsNarrow = presentTense(one = "m."),
32+
yearsNarrow = presentTense(one = "a"),
1933
timeAgo = { "hace $it" },
2034
timeInFuture = { "en $it" },
2135
now = "ahora",
2236
today = "hoy",
2337
yesterday = "ayer",
24-
tomorrow = "mañana"
38+
tomorrow = "mañana",
39+
lessThan = "menos de",
40+
about = "aprox."
2541
),
2642
number = NumberStrings(groupSeparator = ".", decimalSymbol = ",")
2743
)

src/commonMain/kotlin/nl/jacobras/humanreadable/i18n/translations/FiStrings.kt

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package nl.jacobras.humanreadable.i18n.translations
22

33
import nl.jacobras.humanreadable.i18n.Plural
4+
import nl.jacobras.humanreadable.i18n.presentTense
45
import nl.jacobras.humanreadable.i18n.multipleTenses
56
import nl.jacobras.humanreadable.i18n.DateTimeStrings
67
import nl.jacobras.humanreadable.i18n.FileSizeStrings
@@ -38,12 +39,28 @@ internal val FiStrings = HumanReadableStrings(
3839
present(one = "vuosi", other = "vuotta")
3940
future(one = "vuoden", other = "vuoden")
4041
},
42+
secondsShort = presentTense(one = "s"),
43+
minutesShort = presentTense(one = "min"),
44+
hoursShort = presentTense(one = "t"),
45+
daysShort = presentTense(one = "pv"),
46+
weeksShort = presentTense(one = "vk"),
47+
monthsShort = presentTense(one = "kk"),
48+
yearsShort = presentTense(one = "v"),
49+
secondsNarrow = presentTense(one = "s"),
50+
minutesNarrow = presentTense(one = "min"),
51+
hoursNarrow = presentTense(one = "t"),
52+
daysNarrow = presentTense(one = "pv"),
53+
weeksNarrow = presentTense(one = "vk"),
54+
monthsNarrow = presentTense(one = "kk"),
55+
yearsNarrow = presentTense(one = "v"),
4156
timeAgo = { "$it sitten" },
4257
timeInFuture = { "$it kuluttua" },
4358
now = "nyt",
4459
today = "tänään",
4560
yesterday = "eilen",
46-
tomorrow = "huomenna"
61+
tomorrow = "huomenna",
62+
lessThan = "alle",
63+
about = "noin"
4764
),
4865
number = NumberStrings(groupSeparator = " ", decimalSymbol = ","),
4966
fileSize = FileSizeStrings(

src/commonMain/kotlin/nl/jacobras/humanreadable/i18n/translations/FrStrings.kt

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,28 @@ internal val FrStrings = HumanReadableStrings(
1717
weeksLong = presentTense(one = "semaine", other = "semaines"),
1818
monthsLong = presentTense(one = "mois", other = "mois"),
1919
yearsLong = presentTense(one = "an", other = "ans"),
20+
secondsShort = presentTense(one = "s"),
21+
minutesShort = presentTense(one = "min"),
22+
hoursShort = presentTense(one = "h"),
23+
daysShort = presentTense(one = "j"),
24+
weeksShort = presentTense(one = "sem."),
25+
monthsShort = presentTense(one = "m."),
26+
yearsShort = presentTense(one = "an"),
27+
secondsNarrow = presentTense(one = "s"),
28+
minutesNarrow = presentTense(one = "min"),
29+
hoursNarrow = presentTense(one = "h"),
30+
daysNarrow = presentTense(one = "j"),
31+
weeksNarrow = presentTense(one = "sem."),
32+
monthsNarrow = presentTense(one = "m."),
33+
yearsNarrow = presentTense(one = "an"),
2034
timeAgo = { "il y a $it" },
2135
timeInFuture = { "dans $it" },
2236
now = "maintenant",
2337
today = "aujourd'hui",
2438
yesterday = "hier",
25-
tomorrow = "demain"
39+
tomorrow = "demain",
40+
lessThan = "moins de",
41+
about = "environ"
2642
),
2743
number = NumberStrings(groupSeparator = " ", decimalSymbol = ","),
2844
fileSize = FileSizeStrings(

src/commonMain/kotlin/nl/jacobras/humanreadable/i18n/translations/IdStrings.kt

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,28 @@ internal val IdStrings = HumanReadableStrings(
1616
weeksLong = presentTense(other = "minggu"),
1717
monthsLong = presentTense(other = "bulan"),
1818
yearsLong = presentTense(other = "tahun"),
19+
secondsShort = presentTense(other = "dtk"),
20+
minutesShort = presentTense(other = "mnt"),
21+
hoursShort = presentTense(other = "jam"),
22+
daysShort = presentTense(other = "h"),
23+
weeksShort = presentTense(other = "mgg"),
24+
monthsShort = presentTense(other = "bln"),
25+
yearsShort = presentTense(other = "thn"),
26+
secondsNarrow = presentTense(other = "dtk"),
27+
minutesNarrow = presentTense(other = "mnt"),
28+
hoursNarrow = presentTense(other = "jam"),
29+
daysNarrow = presentTense(other = "h"),
30+
weeksNarrow = presentTense(other = "mg"),
31+
monthsNarrow = presentTense(other = "bln"),
32+
yearsNarrow = presentTense(other = "thn"),
1933
timeAgo = { "$it yang lalu" },
2034
timeInFuture = { "dalam $it" },
2135
now = "sekarang",
2236
today = "hari ini",
2337
yesterday = "kemarin",
24-
tomorrow = "besok"
38+
tomorrow = "besok",
39+
lessThan = "kurang dari",
40+
about = "sekitar"
2541
),
2642
number = NumberStrings(groupSeparator = ".", decimalSymbol = ",")
2743
)

src/commonMain/kotlin/nl/jacobras/humanreadable/i18n/translations/ItStrings.kt

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,28 @@ internal val ItStrings = HumanReadableStrings(
1616
weeksLong = presentTense(one = "settimana", other = "settimane"),
1717
monthsLong = presentTense(one = "mese", other = "mesi"),
1818
yearsLong = presentTense(one = "anno", other = "anni"),
19+
secondsShort = presentTense(one = "sec"),
20+
minutesShort = presentTense(one = "min"),
21+
hoursShort = presentTense(one = "h"),
22+
daysShort = presentTense(one = "g"),
23+
weeksShort = presentTense(one = "sett."),
24+
monthsShort = presentTense(one = "mese"),
25+
yearsShort = presentTense(one = "anno"),
26+
secondsNarrow = presentTense(one = "s"),
27+
minutesNarrow = presentTense(one = "min"),
28+
hoursNarrow = presentTense(one = "h"),
29+
daysNarrow = presentTense(one = "g"),
30+
weeksNarrow = presentTense(one = "sett."),
31+
monthsNarrow = presentTense(one = "m."),
32+
yearsNarrow = presentTense(one = "a"),
1933
timeAgo = { "$it fa" },
2034
timeInFuture = { "tra $it" },
2135
now = "adesso",
2236
today = "oggi",
2337
yesterday = "ieri",
24-
tomorrow = "domani"
38+
tomorrow = "domani",
39+
lessThan = "meno di",
40+
about = "circa"
2541
),
2642
number = NumberStrings(groupSeparator = ".", decimalSymbol = ",")
2743
)

0 commit comments

Comments
 (0)