Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
*/
30
export
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
token
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected