@dhis2/analytics 23.13.4 → 23.13.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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [23.13.5](https://github.com/dhis2/analytics/compare/v23.13.4...v23.13.5) (2022-08-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * avoid encoding when interpolating certain variables in i18n.t ([#1304](https://github.com/dhis2/analytics/issues/1304)) ([db83318](https://github.com/dhis2/analytics/commit/db8331800a5132dfe266b2f9a42c5c68bb7e9b6e))
7
+
1
8
  ## [23.13.4](https://github.com/dhis2/analytics/compare/v23.13.3...v23.13.4) (2022-08-05)
2
9
 
3
10
 
@@ -85,7 +85,7 @@ const SourceEmptyPlaceholder = _ref3 => {
85
85
  if (!loading && !options.length && !filter) {
86
86
  message = noItemsMessage || _index.default.t('No data');
87
87
  } else if (!loading && !options.length && filter) {
88
- message = _index.default.t('Nothing found for {{searchTerm}}', {
88
+ message = _index.default.t('Nothing found for {{- searchTerm}}', {
89
89
  searchTerm: filter
90
90
  });
91
91
  }
@@ -132,7 +132,7 @@ const InterpretationModal = _ref2 => {
132
132
  className: _style.default.dynamic([["3175860552", [_ui.colors.grey900, _ui.spacers.dp24, _ui.spacers.dp4, _ui.spacers.dp4]]]) + " " + "title"
133
133
  }, /*#__PURE__*/_react.default.createElement("span", {
134
134
  className: _style.default.dynamic([["3175860552", [_ui.colors.grey900, _ui.spacers.dp24, _ui.spacers.dp4, _ui.spacers.dp4]]]) + " " + "ellipsis"
135
- }, _d2I18n.default.t('Viewing interpretation: {{visualisationName}}', {
135
+ }, _d2I18n.default.t('Viewing interpretation: {{- visualisationName}}', {
136
136
  visualisationName: visualization.displayName,
137
137
  nsSeparator: '^^'
138
138
  }))), /*#__PURE__*/_react.default.createElement(_ui.ModalContent, {
@@ -192,7 +192,7 @@ const UserMentionWrapper = _ref => {
192
192
  className: _UserMentionWrapperStyle.resolvedHeaderStyle.className,
193
193
  dense: true,
194
194
  hideDivider: true,
195
- label: capturedText === '' ? _d2I18n.default.t('Search for a user') : _d2I18n.default.t('Searching for "{{searchText}}"', {
195
+ label: capturedText === '' ? _d2I18n.default.t('Search for a user') : _d2I18n.default.t('Searching for "{{- searchText}}"', {
196
196
  searchText: capturedText
197
197
  })
198
198
  }), fetching && /*#__PURE__*/_react.default.createElement(_ui.MenuItem, {
@@ -57,7 +57,7 @@
57
57
  "Manually select items...": "Manually select items...",
58
58
  "Nothing found in {{- dimensionTitle}}": "Nothing found in {{- dimensionTitle}}",
59
59
  "Search": "Search",
60
- "Nothing found for {{searchTerm}}": "Nothing found for {{searchTerm}}",
60
+ "Nothing found for {{- searchTerm}}": "Nothing found for {{- searchTerm}}",
61
61
  "Delete {{fileType}}": "Delete {{fileType}}",
62
62
  "This {{fileType}} and related interpretations will be deleted. Continue?": "This {{fileType}} and related interpretations will be deleted. Continue?",
63
63
  "Cancel": "Cancel",
@@ -89,7 +89,7 @@
89
89
  "Could not update comment": "Could not update comment",
90
90
  "Enter comment text": "Enter comment text",
91
91
  "Update": "Update",
92
- "Viewing interpretation: {{visualisationName}}": "Viewing interpretation: {{visualisationName}}",
92
+ "Viewing interpretation: {{- visualisationName}}": "Viewing interpretation: {{- visualisationName}}",
93
93
  "Could not load interpretation": "Could not load interpretation",
94
94
  "The interpretation couldn’t be displayed. Try again or contact your system administrator.": "The interpretation couldn’t be displayed. Try again or contact your system administrator.",
95
95
  "Hide interpretation": "Hide interpretation",
@@ -113,7 +113,7 @@
113
113
  "Back to write mode": "Back to write mode",
114
114
  "Too many results. Try refining the search.": "Too many results. Try refining the search.",
115
115
  "Search for a user": "Search for a user",
116
- "Searching for \"{{searchText}}\"": "Searching for \"{{searchText}}\"",
116
+ "Searching for \"{{- searchText}}\"": "Searching for \"{{- searchText}}\"",
117
117
  "No results found": "No results found",
118
118
  "Created by": "Created by",
119
119
  "Anyone": "Anyone",
@@ -64,7 +64,7 @@ const SourceEmptyPlaceholder = _ref3 => {
64
64
  if (!loading && !options.length && !filter) {
65
65
  message = noItemsMessage || i18n.t('No data');
66
66
  } else if (!loading && !options.length && filter) {
67
- message = i18n.t('Nothing found for {{searchTerm}}', {
67
+ message = i18n.t('Nothing found for {{- searchTerm}}', {
68
68
  searchTerm: filter
69
69
  });
70
70
  }
@@ -110,7 +110,7 @@ const InterpretationModal = _ref2 => {
110
110
  className: _JSXStyle.dynamic([["3175860552", [colors.grey900, spacers.dp24, spacers.dp4, spacers.dp4]]]) + " " + "title"
111
111
  }, /*#__PURE__*/React.createElement("span", {
112
112
  className: _JSXStyle.dynamic([["3175860552", [colors.grey900, spacers.dp24, spacers.dp4, spacers.dp4]]]) + " " + "ellipsis"
113
- }, i18n.t('Viewing interpretation: {{visualisationName}}', {
113
+ }, i18n.t('Viewing interpretation: {{- visualisationName}}', {
114
114
  visualisationName: visualization.displayName,
115
115
  nsSeparator: '^^'
116
116
  }))), /*#__PURE__*/React.createElement(ModalContent, {
@@ -171,7 +171,7 @@ export const UserMentionWrapper = _ref => {
171
171
  className: resolvedHeaderStyle.className,
172
172
  dense: true,
173
173
  hideDivider: true,
174
- label: capturedText === '' ? i18n.t('Search for a user') : i18n.t('Searching for "{{searchText}}"', {
174
+ label: capturedText === '' ? i18n.t('Search for a user') : i18n.t('Searching for "{{- searchText}}"', {
175
175
  searchText: capturedText
176
176
  })
177
177
  }), fetching && /*#__PURE__*/React.createElement(MenuItem, {
@@ -57,7 +57,7 @@
57
57
  "Manually select items...": "Manually select items...",
58
58
  "Nothing found in {{- dimensionTitle}}": "Nothing found in {{- dimensionTitle}}",
59
59
  "Search": "Search",
60
- "Nothing found for {{searchTerm}}": "Nothing found for {{searchTerm}}",
60
+ "Nothing found for {{- searchTerm}}": "Nothing found for {{- searchTerm}}",
61
61
  "Delete {{fileType}}": "Delete {{fileType}}",
62
62
  "This {{fileType}} and related interpretations will be deleted. Continue?": "This {{fileType}} and related interpretations will be deleted. Continue?",
63
63
  "Cancel": "Cancel",
@@ -89,7 +89,7 @@
89
89
  "Could not update comment": "Could not update comment",
90
90
  "Enter comment text": "Enter comment text",
91
91
  "Update": "Update",
92
- "Viewing interpretation: {{visualisationName}}": "Viewing interpretation: {{visualisationName}}",
92
+ "Viewing interpretation: {{- visualisationName}}": "Viewing interpretation: {{- visualisationName}}",
93
93
  "Could not load interpretation": "Could not load interpretation",
94
94
  "The interpretation couldn’t be displayed. Try again or contact your system administrator.": "The interpretation couldn’t be displayed. Try again or contact your system administrator.",
95
95
  "Hide interpretation": "Hide interpretation",
@@ -113,7 +113,7 @@
113
113
  "Back to write mode": "Back to write mode",
114
114
  "Too many results. Try refining the search.": "Too many results. Try refining the search.",
115
115
  "Search for a user": "Search for a user",
116
- "Searching for \"{{searchText}}\"": "Searching for \"{{searchText}}\"",
116
+ "Searching for \"{{- searchText}}\"": "Searching for \"{{- searchText}}\"",
117
117
  "No results found": "No results found",
118
118
  "Created by": "Created by",
119
119
  "Anyone": "Anyone",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2/analytics",
3
- "version": "23.13.4",
3
+ "version": "23.13.5",
4
4
  "main": "./build/cjs/index.js",
5
5
  "module": "./build/es/index.js",
6
6
  "exports": {