MCPcopy Create free account
hub / github.com/bytebase/bytebase / factorText

Function factorText

frontend/src/react/components/ExprEditor.tsx:65–69  ·  view source on GitHub ↗
(factor: Factor, t: TFunction)

Source from the content-addressed store, hash-verified

63// ============================================================
64
65function factorText(factor: Factor, t: TFunction): string {
66 const key = `cel.factor.${factor.replace(/\./g, "_")}`;
67 const translated = t(key);
68 return translated === key ? factor : translated;
69}
70
71function getOperatorListByFactor(
72 factor: Factor,

Callers 1

FactorSelectFunction · 0.85

Calls 1

tFunction · 0.50

Tested by

no test coverage detected