MCPcopy Create free account
hub / github.com/facebook/Rapid / t

Method t

modules/core/LocalizationSystem.js:460–466  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 8

languageNameMethod · 0.95
displayNameMethod · 0.95
displayTypeMethod · 0.95
displayLengthMethod · 0.95
displayAreaMethod · 0.95
dmsCoordinatePairMethod · 0.95
decimalCoordinatePairMethod · 0.95
_displayCoordinateMethod · 0.95

Calls 1

_resolveStringMethod · 0.95

Tested by

no test coverage detected