MinecraftDev icon indicating copy to clipboard operation
MinecraftDev copied to clipboard

[Suggestion] Make translation folding work with constants

Open mrbuilder1961 opened this issue 6 months ago • 0 comments

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

mrbuilder1961 avatar Jun 25 '25 01:06 mrbuilder1961