* htmlForLocalizedText * Just returns the given text wrapped in an HTML span element encoding the locale * @param {string} text the text content for the span * @param {string?} localeCode the locale code for the span * @return {string} text wrapped in a HTML span
(text, localeCode)
| 518 | * @return {string} text wrapped in a HTML span |
| 519 | */ |
| 520 | htmlForLocalizedText(text, localeCode) { |
| 521 | return `<span class="localized-text" lang="${localeCode || 'unknown'}">${text}</span>`; |
| 522 | } |
| 523 | |
| 524 | |
| 525 | /** |