Add mc auto translations

[no changelog]
This commit is contained in:
Linnea Gräf
2024-10-30 18:34:52 +01:00
parent c9c25b6156
commit b11b12585d
6 changed files with 33 additions and 9 deletions

View File

@@ -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)