localizedKey

ditto, but constructs locale name from arguments.

  1. string localizedKey(string key, string locale)
  2. string localizedKey(string key, string lang, string country, string modifier)
    @safe pure nothrow
    string
    localizedKey
    (
    string key
    ,
    string lang
    ,
    string country
    ,
    string modifier = null
    )

Examples

assert(localizedKey("Name", "ru", "RU") == "Name[ru_RU]");

Meta