translationOrNull

open fun translationOrNull(fallback: String? = null): MutableText?

The translated Text name from the translationKey. Falls back to the implementing classes Simple Name (non-translated). If no translation exists when called returns null.

Return

MutableText translation result or null if no translation is present

Author

fzzyhmstrs

Since

0.6.8

Parameters

fallback

String, default null. Translation key fallback (can be a literal string too, translation will simply provide the literal once translation fails). If null, the class name will be split by uppercase characters and used (MyClassName -> My Class Name)