- add
void add(string language, string[string] messages)
Adds messages using the given associative array of message:text.
- best
string best(string language)
Undocumented in source. Be warned that the author may not have intended to support it.
- load
void load()
Loads languages in assets/lang/system and assets/lang/messages.
- loadPlugin
string[string][string] loadPlugin(Plugin plugin)
Loads languages from plugin's assets files, located in plugins/$plugin/assets/lang.
- translate
string translate(string message, inout(string)[] params, string language)
string translate(string message, string lang)
string translate(string message, string[] params)
string translate(Translation translation, string language)
string translate(Translation translation)
Translates a message in the given language with the given parameters.
If the language is omitted the message is translated using the default
language.
Stores translatable strings in various languages and provides methods to translate them with the provided arguments.