LanguageManager.translate

Translates a message in the given language with the given parameters. If the language is omitted the message is translated using the default language.

  1. string translate(string message, inout(string)[] params, string language)
    class LanguageManager
    inout
    string
    translate
    (
    inout string message
    ,
    inout(string)[] params
    ,
    string language
    )
  2. string translate(string message, string lang)
  3. string translate(string message, string[] params)
  4. string translate(Translation translation, string language)
  5. string translate(Translation translation)

Return Value

Type: string

the translated message if the language and the message exist or the message if not

Meta