Difference between revisions of "Datageneration/I18n/1.17"

From Forge Community Wiki
(Copy Datageneration/I18n to MC1.17 archive)
 
(No difference)

Latest revision as of 05:49, 6 December 2021

Lang Files can be generated by creating an extension of the file LanguageProvider class. From there you can add the translations in the addTranslations method, which you must override.

To add a translation, call the LanguageProvider#add method. This method takes the translation key and a string that is the displayname for the key.