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

Name

Type

Description

$i18n.getText(key, args)

String

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

  • Parameter: key

  • Type: String

  • Description: The i18n key.

  • Parameter: args

  • Type: Serializable

  • Description: 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: key

  • Type: String

  • Description: The i18n key.

  • Parameter: args

  • Type: Serializable

  • Description: Any 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.