mojira.dev
MC-248616

The strings for enchantment and effect levels above 10 are not translated

The Bug

There are no translation keys for enchantments and effects above level 10, so when using level 11 or above it simply shows as "Sharpness enchant.level.11" instead of "Sharpness XI" Us map and experience makers would like to use enchants and effects beyond 10! Personally I think the enchant and effect values should not be translation keys but rather computed internally (simple integer to roman numeral method). As looking at all the languages the roman numerals are not something that change. Alternatively, the approach bedrock uses could be implemented, above 10, bedrock simply uses integers, so it shows as "Sharpness 11" on bedrock. This is less ideal but is still better than the untranslated key name. The only way we currently have to display enchants above 10 is a hacky workaround of hiding the enchants of the item then writing in gray colored lore "Sharpness XI" which breaks locale support.

Reproduce

/give @p netherite_sword{Enchantments:[{id:sharpness,lvl:1000}]}

Observed Result

The string wasn't translated

Expected Result

The string would be translated

Linked issues

Attachments

Comments 4

You could always provide the translations in your map's resource pack, or use the translate component in your lore, to solve this problem

Adding the string alone is already enough though.

This is a feature request

Wait a second, how is this a feature request???

Oliver Kent

(Unassigned)

Confirmed

(Unassigned)

1.18.1

Retrieved