Essential-Commands icon indicating copy to clipboard operation
Essential-Commands copied to clipboard

Translations system...

Open John-Paul-R opened this issue 4 years ago • 4 comments

If client has essential commands installed, use normal translatable text, so they get feedback in their preferred language.

If client does not have EC installed, send LiteralText of server's selected language to the client.

John-Paul-R avatar Jul 15 '21 12:07 John-Paul-R

Also have to do versions detection or check translations on client... otherwise, if they have an old vers, the text will just be the translation key. Pain.

John-Paul-R avatar Jul 15 '21 12:07 John-Paul-R

You could use ServerTranslationAPI to handle it?

thecatcore avatar Jul 07 '22 00:07 thecatcore

Ooh, that sounds distinctly useful. Thanks for the recommendation! If you've got an example of a mod that is already using this (or docs) that I can use to get up to speed, that'd be greatly appreciated. No pressure if not. I do genuinely appreciate you putting this on my radar.

John-Paul-R avatar Jul 07 '22 12:07 John-Paul-R

Most Patbox mods use it, Nucleoid too.

thecatcore avatar Jul 07 '22 13:07 thecatcore