Skip to main content
Skip table of contents

I18n

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

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

Methods

NameTypeDescription
$i18n.getText(key, args)String

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

ParameterTypeDescription
keyStringThe i18n key.
argsSerializableAny 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.

ParameterTypeDescription
keyStringThe i18n key.
argsSerializableAny arguments to format the i18n text. This parameter is optional.




JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.