The bug
The /difficulty command uses your language’s names for the difficulty when it queries the difficulty or successfully changes it. However, when it fails to change it (because the difficulty was already the provided one), the untranslated ID of the difficulty appears instead.
How to reproduce
Set your language to spanish
Run
/difficulty peaceful
-> ✔ The message is translatedRun
/difficulty
-> ✔ The message is translatedRun
/difficulty peacefulagain
-> ❌ The message uses the untranslated word “peaceful”
Expected result
All messages should use the localized name
Observed result
Error message uses the internal name
Attachments
Comments 2
The essence of this error is easier for Russian-speaking people to understand, because the Russian language is also affected by this bug. Therefore, who is Russian (not English-speaking!) here are the steps to reproduce this bug:
Russian Russian is a language other than Russian, then change it to Russian.
Use it /difficulty peaceful
Use /difficulty
Use /difficulty again.
The error message uses the word «Peaceful», which has not been translated into Russian.
Can confirm