Minecraft: Change item name color without affecting locale

minecraft-java-edition

I would like to change an item's name color without affecting its actual name over different locales.
To be specific, the two languages used on my server are Czech and English (and maybe Slovak), and I want to have a diamond sword that is still called "Diamond sword" (with the appropriate name over all languages), but with a magenta name (so I only want to change the color of the name, and nothing else).
Is there a tag that can achieve this? I use command blocks, but I can install some Spigot NBT plugins if necessary.

Best Answer

You can use a translate JSON tag to automatically use the translated text of the identifier you choose, then modify that however you like:

/give @s diamond_sword{display:{Name:"{\"translate\":\"item.minecraft.diamond_sword\",\"color\":\"red\"}"}}

It even changes its description dynamically when switching languages, so it doesn't just resolve once and then stay like that.

You can find all identifiers (like item.minecraft.diamond_sword) in the .jar file of the version you play, under assets/minecraft/lang/en_us.json.