Skip to content

PonderJS .text() function not displaying translations, showing raw localization keys #36

@SaverioGH

Description

@SaverioGH

Minecraft Version

1.21 NeoForge - 21.1.194

Mod Version

PonderJS-NeoForge-1.21.1-2.1.3

Describe the bug!

I am encountering a problem with the PonderJS .text() function in KubeJS. When I call .text() with a direct string (example: .text(60, "Example text", [2.0, 2.5, 2.5])), the exact string "Example text" is rendered raw, instead of being formatted properly or displayed as expected.

Similarly, when I call .text() with a localization key (example: .text(60, "kubejs.ponder.fission_reactor.text_1", [x, y, z])), the raw key "kubejs.ponder.fission_reactor.text_1" is rendered as-is instead of displaying the localized text.

I have ensured that localization files are correctly placed in kubejs/assets/kubejs/lang/ and contain valid JSON with the proper keys and translated values. I have restarted Minecraft multiple times, tried using /reload and F3+T, but the issue persists.

Crash Report

No response

Log

No response

Additions and Modifications

Yes

Additions and Modifications Description

No response

Did the issue happen in singleplayer or on a server?

Singleplayer

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions