(state?: JsonFormsI18nState)
| 47 | }; |
| 48 | |
| 49 | export const fetchErrorTranslator = (state?: JsonFormsI18nState) => { |
| 50 | if (state === undefined) { |
| 51 | return defaultErrorTranslator; |
| 52 | } |
| 53 | return state.translateError; |
| 54 | }; |
| 55 | |
| 56 | export const getLocale = (state: JsonFormsState) => |
| 57 | fetchLocale(get(state, 'jsonforms.i18n')); |
no outgoing calls
no test coverage detected
searching dependent graphs…