Datageneration/I18n

From Forge Community Wiki
Revision as of 00:59, 19 May 2021 by ShrimpBot (talk | contribs) (Categorize with Category:Data Generation by SizableShrimp#0755)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.