Class LocalizationManager
Manager for handling localizations for all custom content added to the game.
Inheritance
LocalizationManager
Assembly: Jotunn.dll
Syntax
public class LocalizationManager
Fields
Name |
Description |
Name of the community translation files that will be the first custom languages files loaded before any others. |
DefaultLanguage
|
Default language of the game. |
TokenFirstChar
|
Your token must start with this character. |
TranslationsFolderName
|
Name of the folder that will hold the custom .json translations files. |
Properties
Name |
Description |
Instance
|
The singleton instance of this manager. |
Methods
Events
Name |
Description |
OnLocalizationAdded
|
Event that gets fired after all custom localization has been added to the game.
Use this event if you need to translate strings using the vanilla Localization class.
Your code will execute every time the localization gets reset (on every menu start).
If you want to execute just once you will need to unregister from the event after execution. |
Extension Methods