Skip to content

[Suggestion] Make translation folding work with constants #2482

@mrbuilder1961

Description

@mrbuilder1961

Minecraft Development for IntelliJ plugin version

2024.3-1.8.5 (will update to 2025 soon)

Description of the feature request

hello! i'm just requesting that the existing folding that happens with string literal lang keys (with Text.translatable(.) and I18n.translate(.) for instance) can happen with constants. i don't know anything about plugin dev but since constants are constant, i don't see why they can't be used here. if it helps, intellij does a similar thing natively with constants that are made up of other constants (ex. final int LENGTH = SIDE_LENGTH + TALL_LENGTH;). maybe this should be a setting but idk i'm just after the feature lol

how it works right now:

Image

how i'd also like it to work:

Image

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