×

You're using an outdated browser

For a better experience, keep your browser up to date. Check here for the latest version.

Manual

I18n

Thomas Walker

Thomas Walker Last update: Aug 7, 2017

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") 

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.

2xlatest
We use cookies to create a secure and effective browsing experience for our website visitors and to understand how you use our site (i.e. Google Analytics). For more information: click here.
Ok