MCPcopy
hub / github.com/messageformat/messageformat / biDiMarkText

Function biDiMarkText

packages/messageformat/src/bidi-mark-text.js:30–34  ·  view source on GitHub ↗
(text, locale)

Source from the content-addressed store, hash-verified

28 * @private
29 */
30export function biDiMarkText(text, locale) {
31 const isLocaleRTL = rtlRegExp.test(locale);
32 const mark = JSON.stringify(isLocaleRTL ? '\u200F' : '\u200E');
33 return `${mark} + ${text} + ${mark}`;
34}

Callers 1

tokenMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected