MCPcopy Index your code
hub / github.com/ClearURLs/Addon / translate

Function translate

core_js/popup.js:274–277  ·  view source on GitHub ↗

* Translate a string with the i18n API. * * @param {string} string Name of the attribute used for localization

(string)

Source from the content-addressed store, hash-verified

272* @param {string} string Name of the attribute used for localization
273*/
274function translate(string)
275{
276 return browser.i18n.getMessage(string);
277}
278
279function handleError(error) {
280 console.log(`Error: ${error}`);

Callers 3

setHashStatusFunction · 0.70
setTextFunction · 0.70
injectTextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected