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
| Member | Result | Status | Gate | |
|---|---|---|---|---|
getMessage(string messageName, optional any substitutions) | string | realm | The message of the UI language, else of default_locale; "" when no catalogue has it. Up to 9 substitutions. | |
getUILanguage() | string | realm | The UI language the extension was loaded for ("en-US"). | |
getAcceptLanguages() | string[] | realm | The UI language only. |