getMessage

Gets a message.

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

Parameters

languageName string

The language to retrieve a message from.

key string

The key of the message to retrieve.

Return Value

Type: string

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

Meta