MCPcopy
hub / github.com/alibaba/lowcode-engine / parseI18n

Function parseI18n

packages/renderer-core/src/utils/common.ts:293–298  ·  view source on GitHub ↗
(i18nInfo: any, self: any)

Source from the content-addressed store, hash-verified

291 * @param self context
292 */
293export function parseI18n(i18nInfo: any, self: any) {
294 return parseExpression({
295 type: EXPRESSION_TYPE.JSEXPRESSION,
296 value: `this.i18n('${i18nInfo.key}')`,
297 }, self);
298}
299
300/**
301 * for each key in targetObj, run fn with the value of the value, and the context paased in.

Callers 3

BaseRendererClass · 0.90
common.test.tsFile · 0.90
parseDataFunction · 0.85

Calls 1

parseExpressionFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…