* t * Returns only the localized text, discarding the locale info * @param {string} stringID string identifier * @param {Object?} replacements token replacements and default string * @param {string?} locale locale to use (defaults to currentLocale) * @return {strin
(stringID, replacements, locale)
| 458 | * @return {string?} the localized string |
| 459 | */ |
| 460 | t(stringID, replacements, locale) { |
| 461 | let localeParam = null; |
| 462 | if (typeof locale === 'string') localeParam = [locale]; |
| 463 | else if (Array.isArray(locale)) localeParam = locale; |
| 464 | |
| 465 | return this._resolveString(stringID, replacements, localeParam).text; |
| 466 | } |
| 467 | |
| 468 | |
| 469 | /** |
no test coverage detected