( msg: string | MessageFormatElement[] )
| 154 | */ |
| 155 | /** @internal */ |
| 156 | export function generateENXB( |
| 157 | msg: string | MessageFormatElement[] |
| 158 | ): MessageFormatElement[] { |
| 159 | const ast = typeof msg === 'string' ? parse(msg) : msg |
| 160 | forEachLiteralElement(ast, el => { |
| 161 | el.value = transformString(FLIPPED_MAP, false, el.value) |
| 162 | }) |
| 163 | return [ |
| 164 | {type: TYPE.literal, value: '\u202e'}, |
| 165 | ...ast, |
| 166 | {type: TYPE.literal, value: '\u202c'}, |
| 167 | ] |
| 168 | } |
nothing calls this directly
no test coverage detected