* Request the translation for a given key with optional variables and default value. * @param {string} key The key of the string to translate * @param {string|object} [defaultValueOrVariables] The default value or variables for translating. * @param {string} [defaultValue] The default value wi
(key, defaultValueOrVariables, defaultValue)
| 330 | * @returns {string} the translated key |
| 331 | */ |
| 332 | translate (key, defaultValueOrVariables, defaultValue) { |
| 333 | if (typeof defaultValueOrVariables === "object") { |
| 334 | return Translator.translate(this, key, defaultValueOrVariables) || defaultValue || ""; |
| 335 | } |
| 336 | return Translator.translate(this, key) || defaultValueOrVariables || ""; |
| 337 | } |
| 338 | |
| 339 | /** |
| 340 | * Request an (animated) update of the module. |
no outgoing calls
no test coverage detected