MCPcopy
hub / github.com/formatjs/formatjs / generateXXAC

Function generateXXAC

packages/cli-lib/pseudo_locale.ts:43–51  ·  view source on GitHub ↗
(
  msg: string | MessageFormatElement[]
)

Source from the content-addressed store, hash-verified

41
42/** @internal */
43export function generateXXAC(
44 msg: string | MessageFormatElement[]
45): MessageFormatElement[] {
46 const ast = typeof msg === 'string' ? parse(msg) : msg
47 forEachLiteralElement(ast, el => {
48 el.value = el.value.toUpperCase()
49 })
50 return ast
51}
52
53/** @internal */
54export function generateXXHA(

Callers

nothing calls this directly

Calls 2

parseFunction · 0.90
forEachLiteralElementFunction · 0.85

Tested by

no test coverage detected