vibe.d beta banner
get vibe.d
0.7.30

Function tr

Performs the string translation for a statically given language.

The second overload takes a plural form and a number to select from a set of translations based on the plural forms of the target language.

Prototypes

string tr(CTX, string LANG)(
  string key,
  string context = null
);

string tr(CTX, string LANG)(
  string key,
  string key_plural,
  int n,
  string context = null
);
Authors

Sönke Ludwig

Copyright

© 2014-2015 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.