Provides a way to access I18n resources.

Currently i18n resources must be provided by Confluence or a plugin. See https://developer.atlassian.com/docs/common-coding-tasks/internationalising-your-plugin

Example

$i18n.getText("my.translated.message") 
CODE

Methods

Name Type Description
$i18n.getText(key, args) String

Returns the localized I18n resource, formatted using the given arguments.

Parameter Type Description
key String The i18n key.
args Serializable Any arguments to format the i18n text. This parameter is optional.
$i18n.getTextAsHtml(key, args) String

Returns the localized I18n resource, formatted using the given arguments as HTML fragment.

Parameter Type Description
key String The i18n key.
args Serializable Any arguments to format the i18n text. This parameter is optional.