Reference
Translations
UI text translated from the mod JSON, with arguments and fallback.
Usage context
| Module | Package | SDK source |
|---|---|---|
| Kotlin/Native | nimby | kotlin/src/nimby/Translations.kt |
Public API for SDK 0.9.0-alpha.2. Each entry provides the Kotlin signature and its contract: what the value means, conditions of use and effects to understand. Choose imports from the module shown above.
Imports on this page
import nimby.trtr
nimby · fun
fun tr(key: String, vararg arguments: Pair<String, Any>): StringPrepares a text reference from the mod catalogue, translated when displayed. Pass it directly to controls, without concatenation or tr in logs. Up to eight named parameters, converted through toString; plural forms are chosen explicitly by the mod.