@jsonforms/examples 3.5.0-beta.0 → 3.5.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ArrayTranslationEnum, NOT_APPLICABLE, convertDateToString, updateErrors } from '@jsonforms/core';
|
|
2
|
-
import
|
|
3
|
-
import get$1 from 'lodash/get';
|
|
2
|
+
import get from 'lodash/get';
|
|
4
3
|
import localize from 'ajv-i18n/localize';
|
|
5
4
|
|
|
6
5
|
const knownExamples = {};
|
|
@@ -2312,7 +2311,7 @@ const translations$1 = {
|
|
|
2312
2311
|
},
|
|
2313
2312
|
};
|
|
2314
2313
|
const translate$1 = (key, defaultMessage) => {
|
|
2315
|
-
return get
|
|
2314
|
+
return get(translations$1, key) ?? defaultMessage;
|
|
2316
2315
|
};
|
|
2317
2316
|
registerExamples([
|
|
2318
2317
|
{
|
|
@@ -4148,7 +4147,7 @@ const translations = {
|
|
|
4148
4147
|
additionalInformationLabel: 'Additional Information',
|
|
4149
4148
|
};
|
|
4150
4149
|
const translate = (key, defaultMessage) => {
|
|
4151
|
-
return get
|
|
4150
|
+
return get(translations, key) ?? defaultMessage;
|
|
4152
4151
|
};
|
|
4153
4152
|
registerExamples([
|
|
4154
4153
|
{
|