diff options
author | Linnea Gräf <nea@nea.moe> | 2024-10-30 18:34:52 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-10-30 18:34:52 +0100 |
commit | 0945aef517c0d8427a07410115a981d1d43e450a (patch) | |
tree | 46171aa686bbdd39443004ba7104975068fef797 /src/main/kotlin/util | |
parent | c9c25b61560e6fb4e1ba2dfb1d5cc61b0ec9ddab (diff) | |
download | firmament-master.tar.gz firmament-master.tar.bz2 firmament-master.zip |
[no changelog]
Diffstat (limited to 'src/main/kotlin/util')
-rw-r--r-- | src/main/kotlin/util/textutil.kt | 4 |
1 files changed, 4 insertions, 0 deletions
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) + |