translationContext

fnTranslationContextAttribute!CONTEXT translationContext(CONTEXT)() @property

Annotates an interface method or class with translation information.

The translation context contains information about supported languages and the translated strings. Any translations will be automatically applied to Diet templates, as well as strings passed to

vibe.web.web.trWeb.

By default, the "Accept-Language" header of the incoming request will be used to determine the language used. To override this behavior, add a static method determineLanguage to the translation context, which takes the request and returns a language string (see also the second example).