Views
Actions
Difference between revisions of "Datageneration/I18n"
From Forge Community Wiki
(Inital Creation short but the most important info should be there) |
(No difference)
|
Revision as of 21:04, 11 November 2020
Lang Files can be generated by creating an extension of the File LangurageProvider
class. From there you can add the Translations in the addTranslations
Method, you must override.
To add a Translation you call the LanguageProvider#add
method, this method takes the translation key and a String which is the displayname for the key.