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

Method ret

modules/core/LocalizationSystem.js:501–507  ·  view source on GitHub ↗
(selection)

Source from the content-addressed store, hash-verified

499 else if (Array.isArray(locale)) localeParam = locale;
500
501 const ret = function(selection) {
502 const info = this._resolveString(stringID, replacements, localeParam);
503 return selection.append('span')
504 .attr('class', 'localized-text')
505 .attr('lang', info.locale || 'und')
506 .text((replacements?.prefix || '') + info.text + (replacements?.suffix || ''));
507 };
508 ret.stringID = stringID;
509 return ret;
510 }

Callers

nothing calls this directly

Calls 1

_resolveStringMethod · 0.95

Tested by

no test coverage detected