MCPcopy Create free account
hub / github.com/eclipsesource/jsonforms / fetchErrorTranslator

Function fetchErrorTranslator

packages/core/src/i18n/selectors.ts:49–54  ·  view source on GitHub ↗
(state?: JsonFormsI18nState)

Source from the content-addressed store, hash-verified

47};
48
49export const fetchErrorTranslator = (state?: JsonFormsI18nState) => {
50 if (state === undefined) {
51 return defaultErrorTranslator;
52 }
53 return state.translateError;
54};
55
56export const getLocale = (state: JsonFormsState) =>
57 fetchLocale(get(state, 'jsonforms.i18n'));

Callers 1

getErrorTranslatorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…