LocalizationLib
A BepInEx library for programmatically managing localizations in 20 Minutes Till Dawn.
Last updated | 2 years ago |
Total downloads | 1509 |
Total rating | 0 |
Categories | |
Dependency string | Zeprus-LocalizationLib-1.0.0 |
Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
README
LocalizationLib
A BepInEx library for 20 Minutes Till Dawn.
Programmatically manage Localizations in 20 Minutes Till Dawn.
Documentation
static class LocalizationProvider
-
static Dictionary<LocalizationSystem.Language, Dictionary<string, string>> LocalizationDict { get; }
Contains all localization dictionaries from flanne.LocalizationSystem
-
static bool AddLocalization(LocalizationSystem.Language language, string key, string value)
Adds a localization string to the target language if it does not yet exist.
-
static bool AddLocalizationAll(string key, string value)
Adds a localization string to all languages if it does not yet exist.
-
static string GetLocalization(LocalizationSystem.Language language, string key)
Returns a localized string of the target language.
-
static Dictionary<LocalizationSystem.Language, string> GetLocalizationAll(string key)
Resturns all localizations of a string.
-
static void SetLocalization(LocalizationSystem.Language language, string key, string value)
Adds or overwrites a localization string to the target language.
-
static void SetLocalizationAll(string key, string value)
Adds or overwrites all localizations of a string.
-
static Dictionary<string, string> GetLanguageDictionary(LocalizationSystem.Language language)
Returns the localization dictionary of a specific language.