From b11b12585d3e4dfd67f73beebf7cf950799f087c Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Wed, 30 Oct 2024 18:34:52 +0100 Subject: Add mc auto translations [no changelog] --- src/main/kotlin/util/textutil.kt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/kotlin/util/textutil.kt') diff --git a/src/main/kotlin/util/textutil.kt b/src/main/kotlin/util/textutil.kt index a6a7e87..3687743 100644 --- a/src/main/kotlin/util/textutil.kt +++ b/src/main/kotlin/util/textutil.kt @@ -164,3 +164,7 @@ fun Text.transformEachRecursively(function: (Text) -> Text): Text { } } } + +fun tr(key: String, default: String): Text = error("Compiler plugin did not run.") +fun trResolved(key: String, vararg args: Any) = Text.translatable(key, *args) + -- cgit