Skip to content

Commit 187ea18

Browse files
committed
if fallback isn't a key but still isn't null, return the fallback text
1 parent 3c04355 commit 187ea18

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pylon-core/src/main/kotlin/io/github/pylonmc/pylon/core/i18n/AddonTranslator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class AddonTranslator(private val addon: PylonAddon) : Translator {
4242
if (it == null) {
4343
val fallback = component.fallback()
4444
if (fallback != null) {
45-
getTranslation(fallback, locale) ?: return null
45+
getTranslation(fallback, locale) ?: return Component.text(fallback)
4646
} else return null
4747
} else it
4848
}

0 commit comments

Comments
 (0)