Class: I18nUtil

I18nUtil


new I18nUtil()

See pf-i18n element for initialization details.

Methods


gettext(key)

Get localized text.

Parameters:
Name Type Description
key string

The message key


setMixin(mixin)

Set an object literal containing translated messages or an object containing a getMsg() function to retrieve translated messages.

Parameters:
Name Type Description
mixin function

The i18n mixin.