MCPcopy
hub / github.com/ClearURLs/Addon / translate

Function translate

core_js/settings.js:107–109  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

105 * @param {string[]} placeholders Array of placeholders
106 */
107function translate(string, ...placeholders) {
108 return browser.i18n.getMessage(string, placeholders);
109}
110
111/**
112 * Get the data.

Callers 3

getDataFunction · 0.70
setTextFunction · 0.70
injectTextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected