@truedat/bg 5.12.2 → 5.12.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/bg",
3
- "version": "5.12.2",
3
+ "version": "5.12.5",
4
4
  "description": "Truedat Web Business Glossary",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -111,5 +111,5 @@
111
111
  "react-dom": ">= 16.8.6 < 17",
112
112
  "semantic-ui-react": ">= 2.0.3 < 2.2"
113
113
  },
114
- "gitHead": "1121d357f2a54a2ad2e77adbd43096004316453d"
114
+ "gitHead": "d4ada9bc4f5c168a1a911e51ae8e5b47a71d7855"
115
115
  }
@@ -30,7 +30,7 @@ export const ConceptsActions = ({
30
30
  hidden,
31
31
  upload,
32
32
  }) => {
33
- const { formatMessage } = useIntl();
33
+ const { formatMessage, locale } = useIntl();
34
34
  const headerLabels = _.flow(
35
35
  _.map((l) => [l, formatMessage({ id: `concepts.props.${l}` })]),
36
36
  _.fromPairs
@@ -50,7 +50,7 @@ export const ConceptsActions = ({
50
50
  floated="right"
51
51
  secondary
52
52
  icon="download"
53
- onClick={() => downloadConcepts({ headerLabels })}
53
+ onClick={() => downloadConcepts({ headerLabels, lang: locale })}
54
54
  loading={conceptsDownloading}
55
55
  data-tooltip={formatMessage({
56
56
  id: "concepts.actions.download.tooltip",
@@ -31,13 +31,15 @@ describe("sagas: downloadConceptsRequestSaga", () => {
31
31
 
32
32
  describe("sagas: downloadConceptsSaga", () => {
33
33
  const headerLabels = { name: "Name" };
34
- const payload = { headerLabels };
34
+ const lang = "es";
35
+ const payload = { headerLabels, lang: lang };
35
36
 
36
37
  const conceptQuery = { filters: {} };
37
38
  const data = "SOME CSV DATA";
38
39
 
39
40
  const body = {
40
41
  header_labels: headerLabels,
42
+ lang: lang,
41
43
  concept_url_schema:
42
44
  "http://localhost/concepts/:business_concept_id/versions/:id",
43
45
  ...conceptQuery,
@@ -17,11 +17,13 @@ export function saveFile(data) {
17
17
  export function* downloadConceptsSaga({ payload }) {
18
18
  try {
19
19
  const headerLabels = _.propOr({}, "headerLabels")(payload);
20
+ const lang = _.propOr("es", "lang")(payload);
20
21
  const query = yield select(getPreviousConceptQuery);
21
22
  const conceptUrlSchema = window.location.origin + CONCEPT_VERSION;
22
23
  const body = {
23
24
  header_labels: headerLabels,
24
25
  concept_url_schema: conceptUrlSchema,
26
+ lang,
25
27
  ...query,
26
28
  };
27
29
  const url = API_BUSINESS_CONCEPT_VERSIONS_CSV;