NRF SDK 0.9

Reference

Translations

UI text translated from the mod JSON, with arguments and fallback.

Usage context

ModulePackageSDK source
Kotlin/Nativenimbykotlin/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.tr

tr

nimby · fun
fun tr(key: String, vararg arguments: Pair<String, Any>): String

Prepares 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.