- 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 lang/system and lang/messages.
- parseFolder
string[string][string] parseFolder(string folder)
Undocumented in source. Be warned that the author may not have intended to support it.
- 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.