(selection)
| 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 | } |
nothing calls this directly
no test coverage detected