* Translate a string with the i18n API. * * @param {string} string Name of the attribute used for localization * @param {string[]} placeholders Array of placeholders
(string, ...placeholders)
| 105 | * @param {string[]} placeholders Array of placeholders |
| 106 | */ |
| 107 | function translate(string, ...placeholders) { |
| 108 | return browser.i18n.getMessage(string, placeholders); |
| 109 | } |
| 110 | |
| 111 | /** |
| 112 | * Get the data. |
no outgoing calls
no test coverage detected