MCPcopy
hub / github.com/formatjs/formatjs / generateXXLS

Function generateXXLS

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

Source from the content-addressed store, hash-verified

28
29/** @internal */
30export function generateXXLS(
31 msg: string | MessageFormatElement[]
32): MessageFormatElement[] {
33 const ast = typeof msg === 'string' ? parse(msg) : msg
34 const lastChunk = ast[ast.length - 1]
35 if (lastChunk && isLiteralElement(lastChunk)) {
36 lastChunk.value += 'SSSSSSSSSSSSSSSSSSSSSSSSS'
37 return ast
38 }
39 return [...ast, {type: TYPE.literal, value: 'SSSSSSSSSSSSSSSSSSSSSSSSS'}]
40}
41
42/** @internal */
43export function generateXXAC(

Callers

nothing calls this directly

Calls 2

parseFunction · 0.90
isLiteralElementFunction · 0.90

Tested by

no test coverage detected