Wren

chrome.i18n

The messages of the extension's _locales, read from the image in the realm (no call reaches the browser's loop).

Gate: no permission; contexts: Background, Popup, Tab, Content. Source: api/ext_i18n.widl.

Methods and properties

MemberResultStatusGate
getMessage(string messageName, optional any substitutions)stringrealmThe message of the UI language, else of default_locale; "" when no catalogue has it. Up to 9 substitutions.
getUILanguage()stringrealmThe UI language the extension was loaded for ("en-US").
getAcceptLanguages()string[]realmThe UI language only.

Edit this page on GitHub