getMessage

Gets a message.

  1. string getMessage(HttpClient client, string key)
    static if(isWeb)
    string
    getMessage
    (
    HttpClient client
    ,
    string key
    )
  2. string getMessage(string languageName, string key)

Parameters

key string

The key of the message to retrieve.

Return Value

Type: string

The message if found for the client's language, otherwise it will attempt to get the default language's message and if that fails too then it returns an empty string.

Meta