License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
Internationalization/translation support for the web interface module.
string contextstring keystring pluralKeystring valuestring[] pluralValuesTranslationContextAttribute!CONTEXT translationContext(CONTEXT)() @propertyAnnotates an interface method or class with translation information.string determineLanguageByHeader(T)(string accept_language, T allowed_languages) if (isForwardRange!T && is(ElementType!T : string) || is(T == typeof(only()))) @safe pure @nogcDetermines a language code from the value of a header string. Returns: The best match from the Accept-Language header for a language. `null` if there is no supported language.string determineLanguageByHeader(Tuple...)(string accept_language, Tuple allowed_languages) if (Tuple.length != 1 || is(Tuple[0] : string)) @safe pure @nogcdittostring determineLanguageByHeader(T)(HTTPServerRequest req, T allowed_languages) if (isForwardRange!T && is(ElementType!T : string) || is(T == typeof(only()))) @safe puredittostring determineLanguageByHeader(Tuple...)(HTTPServerRequest req, Tuple allowed_languages) if (Tuple.length != 1 || is(Tuple[0] : string)) @safe puredittostring determineLanguage(alias METHOD)(scope HTTPServerRequest req)LangComponents extractDeclStrings(string text)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.