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

Method hasTextForStringID

modules/core/LocalizationSystem.js:447–449  ·  view source on GitHub ↗

* hasTextForStringID * Returns true if the given string id will return a string * * @param {string} stringID string identifier * @return {boolean} true if the given string id will return a string

(stringID)

Source from the content-addressed store, hash-verified

445 * @return {boolean} true if the given string id will return a string
446 */
447 hasTextForStringID(stringID) {
448 return !!this._resolveString(stringID, { default: 'nothing found' }).locale;
449 }
450
451
452 /**

Callers

nothing calls this directly

Calls 1

_resolveStringMethod · 0.95

Tested by

no test coverage detected