Lang

Namespace: uModLibraries

Assembly: uMod.Core.dll

Inheritance ObjectLibrary Lang

Implements ILibrary, ISingleton

Constructors

Name

Summary

Lang (IApplication, ILogger)

Methods

Name

Summary

GetLangMessage (String, IPlugin, String)

Gets a message using the specified key for the specified plugin and language

GetLanguage (String)

Gets the language for the player, fall back to the default server language if no language is set

GetLanguageFiles (IPlugin, String)

Gets all language files for the specified plugin

GetLanguages (IPlugin, String)

Gets all available languages or only those for the specified plugin

GetMessage (String, IPlugin, String)

Gets a message using the specified key for the specified plugin and player

GetMessages (String, IPlugin)

GetServerLanguage ()

Gets the default language for the server

HasLanguage (String, IPlugin, String)

Checks if translations exist for the specified language

RegisterJson (Dictionary<String, String>, IPlugin, String)

RegisterMessages (Dictionary<String, String>, IPlugin, String)

Registers a language set for a plugin

RegisterToml (Dictionary<String, String>, IPlugin, String)

SetLanguage (String, String)

Sets the language preference for the player

SetServerLanguage (String)

Sets the default language for the server