@truedat/cx 4.48.0 → 4.48.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.48.2] 2022-07-08
4
+
5
+ ### Changed
6
+
7
+ - [TD-4995] Support localization of template fields and fixed values
8
+
3
9
  ## [4.44.4] 2022-05-19
4
10
 
5
11
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/cx",
3
- "version": "4.48.0",
3
+ "version": "4.48.2",
4
4
  "description": "Truedat Web Connectors",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -92,7 +92,7 @@
92
92
  },
93
93
  "dependencies": {
94
94
  "@apollo/client": "^3.6.4",
95
- "@truedat/core": "4.48.0",
95
+ "@truedat/core": "4.48.2",
96
96
  "lodash": "^4.17.21",
97
97
  "match-sorter": "^6.3.1",
98
98
  "path-to-regexp": "^1.7.0",
@@ -111,5 +111,5 @@
111
111
  "react-dom": ">= 16.8.6 < 17",
112
112
  "semantic-ui-react": ">= 0.88.2 < 2.1"
113
113
  },
114
- "gitHead": "c4587d045fa6c9028082bdfbcfb35e4383f117ed"
114
+ "gitHead": "93133e957332713e64c97eecdf45cc283c29bd32"
115
115
  }
@@ -105,7 +105,7 @@ const ConfigurationForm = ({
105
105
  <Form>
106
106
  <Form.Field required>
107
107
  <label>
108
- {formatMessage({ id: "configuration.props.external_id" })}
108
+ <FormattedMessage id="configuration.props.external_id" />
109
109
  {_.isEmpty(external_id) ? (
110
110
  <Label pointing="left">
111
111
  <FormattedMessage id="template.form.validation.empty_required" />
@@ -105,7 +105,14 @@ export class SourceForm extends React.Component {
105
105
  const { external_id, content, template, type } = this.state;
106
106
 
107
107
  const typeOptions = _.flow(
108
- _.map(({ id, label, name }) => ({ key: id, value: name, text: label })),
108
+ _.map(({ id, label, name }) => ({
109
+ key: id,
110
+ value: name,
111
+ text: formatMessage({
112
+ id: `templates.${label}`,
113
+ defaultMessage: label,
114
+ }),
115
+ })),
109
116
  _.sortBy(accentInsensitivePathOrder("text"))
110
117
  )(templates);
111
118