@dhis2/analytics 21.2.0 → 21.2.4

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.
Files changed (62) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/build/cjs/components/TranslationDialog/TranslationModal/TranslationForm.js +20 -17
  3. package/build/cjs/locales/ar/translations.json +8 -0
  4. package/build/cjs/locales/ar_EG/translations.json +8 -0
  5. package/build/cjs/locales/ar_IQ/translations.json +8 -0
  6. package/build/cjs/locales/ckb/translations.json +8 -0
  7. package/build/cjs/locales/cs/translations.json +8 -0
  8. package/build/cjs/locales/da/translations.json +8 -0
  9. package/build/cjs/locales/es/translations.json +8 -0
  10. package/build/cjs/locales/fr/translations.json +8 -0
  11. package/build/cjs/locales/id/translations.json +8 -0
  12. package/build/cjs/locales/km/translations.json +8 -0
  13. package/build/cjs/locales/lo/translations.json +8 -0
  14. package/build/cjs/locales/my/translations.json +8 -0
  15. package/build/cjs/locales/nb/translations.json +8 -0
  16. package/build/cjs/locales/nl/translations.json +8 -0
  17. package/build/cjs/locales/prs/translations.json +8 -0
  18. package/build/cjs/locales/ps/translations.json +8 -0
  19. package/build/cjs/locales/pt/translations.json +8 -0
  20. package/build/cjs/locales/pt_BR/translations.json +8 -0
  21. package/build/cjs/locales/ru/translations.json +8 -0
  22. package/build/cjs/locales/sv/translations.json +8 -0
  23. package/build/cjs/locales/tet/translations.json +8 -0
  24. package/build/cjs/locales/tg/translations.json +8 -0
  25. package/build/cjs/locales/uk/translations.json +8 -0
  26. package/build/cjs/locales/ur/translations.json +8 -0
  27. package/build/cjs/locales/uz/translations.json +8 -0
  28. package/build/cjs/locales/uz_Latn/translations.json +8 -0
  29. package/build/cjs/locales/vi/translations.json +8 -0
  30. package/build/cjs/locales/zh/translations.json +8 -0
  31. package/build/cjs/locales/zh_CN/translations.json +8 -0
  32. package/build/es/components/TranslationDialog/TranslationModal/TranslationForm.js +20 -17
  33. package/build/es/locales/ar/translations.json +8 -0
  34. package/build/es/locales/ar_EG/translations.json +8 -0
  35. package/build/es/locales/ar_IQ/translations.json +8 -0
  36. package/build/es/locales/ckb/translations.json +8 -0
  37. package/build/es/locales/cs/translations.json +8 -0
  38. package/build/es/locales/da/translations.json +8 -0
  39. package/build/es/locales/es/translations.json +8 -0
  40. package/build/es/locales/fr/translations.json +8 -0
  41. package/build/es/locales/id/translations.json +8 -0
  42. package/build/es/locales/km/translations.json +8 -0
  43. package/build/es/locales/lo/translations.json +8 -0
  44. package/build/es/locales/my/translations.json +8 -0
  45. package/build/es/locales/nb/translations.json +8 -0
  46. package/build/es/locales/nl/translations.json +8 -0
  47. package/build/es/locales/prs/translations.json +8 -0
  48. package/build/es/locales/ps/translations.json +8 -0
  49. package/build/es/locales/pt/translations.json +8 -0
  50. package/build/es/locales/pt_BR/translations.json +8 -0
  51. package/build/es/locales/ru/translations.json +8 -0
  52. package/build/es/locales/sv/translations.json +8 -0
  53. package/build/es/locales/tet/translations.json +8 -0
  54. package/build/es/locales/tg/translations.json +8 -0
  55. package/build/es/locales/uk/translations.json +8 -0
  56. package/build/es/locales/ur/translations.json +8 -0
  57. package/build/es/locales/uz/translations.json +8 -0
  58. package/build/es/locales/uz_Latn/translations.json +8 -0
  59. package/build/es/locales/vi/translations.json +8 -0
  60. package/build/es/locales/zh/translations.json +8 -0
  61. package/build/es/locales/zh_CN/translations.json +8 -0
  62. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,31 @@
1
+ ## [21.2.4](https://github.com/dhis2/analytics/compare/v21.2.3...v21.2.4) (2022-01-06)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **translations:** sync translations from transifex (master) ([271c764](https://github.com/dhis2/analytics/commit/271c76485718b71bd3d046be2cd8baa130dac01f))
7
+
8
+ ## [21.2.3](https://github.com/dhis2/analytics/compare/v21.2.2...v21.2.3) (2022-01-05)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * fetch translations for field labels from api ([#1119](https://github.com/dhis2/analytics/issues/1119)) ([e2fcacc](https://github.com/dhis2/analytics/commit/e2fcaccbd058a8e85a99e032f6341e7f15a83b94))
14
+
15
+ ## [21.2.2](https://github.com/dhis2/analytics/compare/v21.2.1...v21.2.2) (2021-12-28)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **translations:** sync translations from transifex (master) ([2657706](https://github.com/dhis2/analytics/commit/2657706a6033413cc0d405933b6d6ed180bd509c))
21
+
22
+ ## [21.2.1](https://github.com/dhis2/analytics/compare/v21.2.0...v21.2.1) (2021-12-24)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * **translations:** sync translations from transifex (master) ([83f9fe4](https://github.com/dhis2/analytics/commit/83f9fe42eb3e5efa115298a7561f5ddc5a627cc5))
28
+
1
29
  # [21.2.0](https://github.com/dhis2/analytics/compare/v21.1.1...v21.2.0) (2021-12-23)
2
30
 
3
31
 
@@ -37,17 +37,13 @@ const TranslationForm = ({
37
37
  }) => {
38
38
  const [newTranslations, setNewTranslations] = (0, _react.useState)();
39
39
  const [translationLocale, setTranslationLocale] = (0, _react.useState)();
40
+ const [fieldsTranslations, setFieldsTranslations] = (0, _react.useState)({});
40
41
  const {
41
42
  show: showError
42
43
  } = (0, _appRuntime.useAlert)(error => error, {
43
44
  critical: true
44
45
  });
45
46
 
46
- const formatFieldLabel = field => {
47
- field.replace(/[a-z][A-Z]/g, match => [match.charAt(0), match.charAt(1)].join(' ')).toLowerCase();
48
- return field.charAt(0).toUpperCase() + field.slice(1);
49
- };
50
-
51
47
  const camelCaseToUnderscores = field => field.replace(/[a-z][A-Z]/g, match => [match.charAt(0), match.charAt(1)].join('_')).toLowerCase();
52
48
 
53
49
  const getTranslationIndexForField = field => newTranslations.findIndex(element => element.locale === translationLocale && element.property.toLowerCase() === camelCaseToUnderscores(field));
@@ -69,6 +65,14 @@ const TranslationForm = ({
69
65
  setNewTranslations(translationIndex === -1 ? [...newTranslations, newTranslation] : newTranslations.map((translation, index) => index === translationIndex ? newTranslation : translation));
70
66
  };
71
67
 
68
+ const [fetchFieldsTranslations] = (0, _appRuntime.useDataMutation)({
69
+ resource: 'i18n',
70
+ type: 'create',
71
+ data: fieldsToTranslate.map(camelCaseToUnderscores)
72
+ }, {
73
+ onComplete: res => setFieldsTranslations(res),
74
+ onError: error => showError(error)
75
+ });
72
76
  const translationsMutationRef = (0, _react.useRef)({
73
77
  resource: "".concat(resource, "/translations"),
74
78
  type: 'update',
@@ -85,9 +89,7 @@ const TranslationForm = ({
85
89
  onTranslationSaved();
86
90
  onClose();
87
91
  },
88
- onError: error => {
89
- showError(error);
90
- }
92
+ onError: error => showError(error)
91
93
  });
92
94
 
93
95
  const onLocaleChange = locale => {
@@ -100,6 +102,11 @@ const TranslationForm = ({
100
102
  });
101
103
 
102
104
  (0, _react.useEffect)(() => setTranslationLocale(window.sessionStorage.getItem(SESSION_STORAGE_TRANSLATION_LOCALE_KEY)), []);
105
+ (0, _react.useEffect)(() => {
106
+ const fetchTranslations = () => fetchFieldsTranslations(fieldsToTranslate);
107
+
108
+ fetchTranslations();
109
+ }, [fieldsToTranslate]);
103
110
  (0, _react.useEffect)(() => setNewTranslations(translations), [translations]);
104
111
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ui.ModalContent, null, /*#__PURE__*/_react.default.createElement(_ui.DataTable, {
105
112
  layout: "fixed"
@@ -114,21 +121,17 @@ const TranslationForm = ({
114
121
  onChange: onLocaleChange
115
122
  })))), /*#__PURE__*/_react.default.createElement(_ui.DataTableBody, null, fieldsToTranslate.map((field, index) => /*#__PURE__*/_react.default.createElement(_ui.DataTableRow, {
116
123
  key: field
117
- }, /*#__PURE__*/_react.default.createElement(_ui.DataTableCell, null, /*#__PURE__*/_react.default.createElement("div", {
118
- className: ""
119
- }, /*#__PURE__*/_react.default.createElement(_ui.InputField, {
120
- label: formatFieldLabel(field),
124
+ }, /*#__PURE__*/_react.default.createElement(_ui.DataTableCell, null, /*#__PURE__*/_react.default.createElement(_ui.InputField, {
125
+ label: fieldsTranslations[field],
121
126
  value: objectToTranslate[field],
122
127
  readOnly: true
123
- }))), translationLocale && /*#__PURE__*/_react.default.createElement(_ui.DataTableCell, null, /*#__PURE__*/_react.default.createElement("div", {
124
- className: ""
125
- }, /*#__PURE__*/_react.default.createElement(_ui.InputField, {
126
- label: formatFieldLabel(field),
128
+ })), translationLocale && /*#__PURE__*/_react.default.createElement(_ui.DataTableCell, null, /*#__PURE__*/_react.default.createElement(_ui.InputField, {
129
+ label: fieldsTranslations[field],
127
130
  value: getTranslationForField(field),
128
131
  onChange: ({
129
132
  value
130
133
  }) => setTranslationForField(field, value)
131
- }))), !translationLocale && index === 0 && /*#__PURE__*/_react.default.createElement(_ui.DataTableCell, {
134
+ })), !translationLocale && index === 0 && /*#__PURE__*/_react.default.createElement(_ui.DataTableCell, {
132
135
  rowSpan: String(fieldsToTranslate.length)
133
136
  }, /*#__PURE__*/_react.default.createElement(_ui.CenteredContent, null, _d2I18n.default.t('Choose a locale to translate from the menu above')))))))), /*#__PURE__*/_react.default.createElement(_TranslationModalActions.TranslationModalActions, {
134
137
  onClose: onClose,
@@ -238,6 +238,14 @@
238
238
  "Six-months": "ستة-أشهر",
239
239
  "Financial Years": "السنوات المالية",
240
240
  "Years": "السنوات",
241
+ "Translating to": "",
242
+ "Choose a locale": "",
243
+ "Base locale reference": "",
244
+ "Choose a locale to translate from the menu above": "",
245
+ "Translate: {{objectName}}": "",
246
+ "Save translations": "",
247
+ "Could not load translations": "",
248
+ "Retry": "",
241
249
  "Series": "سلسلة",
242
250
  "Category": "الفئة",
243
251
  "Filter": "عامل التصفية",
@@ -238,6 +238,14 @@
238
238
  "Six-months": "",
239
239
  "Financial Years": "",
240
240
  "Years": "",
241
+ "Translating to": "",
242
+ "Choose a locale": "",
243
+ "Base locale reference": "",
244
+ "Choose a locale to translate from the menu above": "",
245
+ "Translate: {{objectName}}": "",
246
+ "Save translations": "",
247
+ "Could not load translations": "",
248
+ "Retry": "",
241
249
  "Series": "",
242
250
  "Category": "",
243
251
  "Filter": "",
@@ -238,6 +238,14 @@
238
238
  "Six-months": "ستة أشهر",
239
239
  "Financial Years": "",
240
240
  "Years": "السنوات",
241
+ "Translating to": "",
242
+ "Choose a locale": "",
243
+ "Base locale reference": "",
244
+ "Choose a locale to translate from the menu above": "",
245
+ "Translate: {{objectName}}": "",
246
+ "Save translations": "",
247
+ "Could not load translations": "",
248
+ "Retry": "",
241
249
  "Series": "",
242
250
  "Category": "",
243
251
  "Filter": "",
@@ -222,6 +222,14 @@
222
222
  "Six-months": "",
223
223
  "Financial Years": "",
224
224
  "Years": "ساڵەکان",
225
+ "Translating to": "",
226
+ "Choose a locale": "",
227
+ "Base locale reference": "",
228
+ "Choose a locale to translate from the menu above": "",
229
+ "Translate: {{objectName}}": "",
230
+ "Save translations": "",
231
+ "Could not load translations": "",
232
+ "Retry": "",
225
233
  "Series": "",
226
234
  "Category": "",
227
235
  "Filter": "",
@@ -230,6 +230,14 @@
230
230
  "Six-months": "Půlrok",
231
231
  "Financial Years": "Finanční roky",
232
232
  "Years": "Let",
233
+ "Translating to": "",
234
+ "Choose a locale": "",
235
+ "Base locale reference": "",
236
+ "Choose a locale to translate from the menu above": "",
237
+ "Translate: {{objectName}}": "",
238
+ "Save translations": "",
239
+ "Could not load translations": "",
240
+ "Retry": "",
233
241
  "Series": "Série",
234
242
  "Category": "Kategorie",
235
243
  "Filter": "Filtr",
@@ -222,6 +222,14 @@
222
222
  "Six-months": "",
223
223
  "Financial Years": "",
224
224
  "Years": "",
225
+ "Translating to": "",
226
+ "Choose a locale": "",
227
+ "Base locale reference": "",
228
+ "Choose a locale to translate from the menu above": "",
229
+ "Translate: {{objectName}}": "",
230
+ "Save translations": "",
231
+ "Could not load translations": "",
232
+ "Retry": "",
225
233
  "Series": "",
226
234
  "Category": "Category",
227
235
  "Filter": "Filter",
@@ -222,6 +222,14 @@
222
222
  "Six-months": "Semestres",
223
223
  "Financial Years": "",
224
224
  "Years": "Años",
225
+ "Translating to": "",
226
+ "Choose a locale": "",
227
+ "Base locale reference": "",
228
+ "Choose a locale to translate from the menu above": "",
229
+ "Translate: {{objectName}}": "",
230
+ "Save translations": "",
231
+ "Could not load translations": "",
232
+ "Retry": "",
225
233
  "Series": "",
226
234
  "Category": "Categoría",
227
235
  "Filter": "filtro",
@@ -222,6 +222,14 @@
222
222
  "Six-months": "Semestres",
223
223
  "Financial Years": "Années fiscales",
224
224
  "Years": "Années",
225
+ "Translating to": "",
226
+ "Choose a locale": "",
227
+ "Base locale reference": "",
228
+ "Choose a locale to translate from the menu above": "",
229
+ "Translate: {{objectName}}": "",
230
+ "Save translations": "",
231
+ "Could not load translations": "",
232
+ "Retry": "",
225
233
  "Series": "Séries",
226
234
  "Category": "Catégorie",
227
235
  "Filter": "Filtrer",
@@ -218,6 +218,14 @@
218
218
  "Six-months": "Semester",
219
219
  "Financial Years": "Keuangan tahunan",
220
220
  "Years": "Tahun",
221
+ "Translating to": "",
222
+ "Choose a locale": "",
223
+ "Base locale reference": "",
224
+ "Choose a locale to translate from the menu above": "",
225
+ "Translate: {{objectName}}": "",
226
+ "Save translations": "",
227
+ "Could not load translations": "",
228
+ "Retry": "",
221
229
  "Series": "Seri",
222
230
  "Category": "Kategori",
223
231
  "Filter": "Saring",
@@ -218,6 +218,14 @@
218
218
  "Six-months": "",
219
219
  "Financial Years": "",
220
220
  "Years": "ឆ្នាំ",
221
+ "Translating to": "",
222
+ "Choose a locale": "",
223
+ "Base locale reference": "",
224
+ "Choose a locale to translate from the menu above": "",
225
+ "Translate: {{objectName}}": "",
226
+ "Save translations": "",
227
+ "Could not load translations": "",
228
+ "Retry": "",
221
229
  "Series": "",
222
230
  "Category": "",
223
231
  "Filter": "",
@@ -218,6 +218,14 @@
218
218
  "Six-months": "6 ເດືອນ",
219
219
  "Financial Years": "",
220
220
  "Years": "ປີ",
221
+ "Translating to": "",
222
+ "Choose a locale": "",
223
+ "Base locale reference": "",
224
+ "Choose a locale to translate from the menu above": "",
225
+ "Translate: {{objectName}}": "",
226
+ "Save translations": "",
227
+ "Could not load translations": "",
228
+ "Retry": "",
221
229
  "Series": "ແທ່ງ",
222
230
  "Category": "ລວງນອນ",
223
231
  "Filter": "Filter",
@@ -218,6 +218,14 @@
218
218
  "Six-months": "၆ လ",
219
219
  "Financial Years": "",
220
220
  "Years": "နှစ်များ",
221
+ "Translating to": "",
222
+ "Choose a locale": "",
223
+ "Base locale reference": "",
224
+ "Choose a locale to translate from the menu above": "",
225
+ "Translate: {{objectName}}": "",
226
+ "Save translations": "",
227
+ "Could not load translations": "",
228
+ "Retry": "",
221
229
  "Series": "အစဉ်အတန်းများ",
222
230
  "Category": "category",
223
231
  "Filter": "ရှာဖွေထုတ်သည်",
@@ -222,6 +222,14 @@
222
222
  "Six-months": "Halvår",
223
223
  "Financial Years": "Regnskapsår",
224
224
  "Years": "År",
225
+ "Translating to": "",
226
+ "Choose a locale": "",
227
+ "Base locale reference": "",
228
+ "Choose a locale to translate from the menu above": "",
229
+ "Translate: {{objectName}}": "",
230
+ "Save translations": "",
231
+ "Could not load translations": "",
232
+ "Retry": "",
225
233
  "Series": "Serie",
226
234
  "Category": "Kategori",
227
235
  "Filter": "Filter",
@@ -222,6 +222,14 @@
222
222
  "Six-months": "",
223
223
  "Financial Years": "",
224
224
  "Years": "",
225
+ "Translating to": "",
226
+ "Choose a locale": "",
227
+ "Base locale reference": "",
228
+ "Choose a locale to translate from the menu above": "",
229
+ "Translate: {{objectName}}": "",
230
+ "Save translations": "",
231
+ "Could not load translations": "",
232
+ "Retry": "",
225
233
  "Series": "",
226
234
  "Category": "",
227
235
  "Filter": "",
@@ -222,6 +222,14 @@
222
222
  "Six-months": "شش-ماهه",
223
223
  "Financial Years": "",
224
224
  "Years": "سالانه",
225
+ "Translating to": "",
226
+ "Choose a locale": "",
227
+ "Base locale reference": "",
228
+ "Choose a locale to translate from the menu above": "",
229
+ "Translate: {{objectName}}": "",
230
+ "Save translations": "",
231
+ "Could not load translations": "",
232
+ "Retry": "",
225
233
  "Series": "سلسله (لړۍ)",
226
234
  "Category": "دسته بندی",
227
235
  "Filter": "فلتر",
@@ -222,6 +222,14 @@
222
222
  "Six-months": "شپږ میاشتې",
223
223
  "Financial Years": "",
224
224
  "Years": "کلونه",
225
+ "Translating to": "",
226
+ "Choose a locale": "",
227
+ "Base locale reference": "",
228
+ "Choose a locale to translate from the menu above": "",
229
+ "Translate: {{objectName}}": "",
230
+ "Save translations": "",
231
+ "Could not load translations": "",
232
+ "Retry": "",
225
233
  "Series": "سلسله (لړۍ)",
226
234
  "Category": "کټګوري",
227
235
  "Filter": "فیلټر",
@@ -222,6 +222,14 @@
222
222
  "Six-months": "Seis meses",
223
223
  "Financial Years": "Ano financeiro ",
224
224
  "Years": "Anos",
225
+ "Translating to": "",
226
+ "Choose a locale": "",
227
+ "Base locale reference": "",
228
+ "Choose a locale to translate from the menu above": "",
229
+ "Translate: {{objectName}}": "",
230
+ "Save translations": "",
231
+ "Could not load translations": "",
232
+ "Retry": "",
225
233
  "Series": "Série",
226
234
  "Category": "Categoria",
227
235
  "Filter": "Filtro",
@@ -222,6 +222,14 @@
222
222
  "Six-months": "",
223
223
  "Financial Years": "",
224
224
  "Years": "Anos",
225
+ "Translating to": "",
226
+ "Choose a locale": "",
227
+ "Base locale reference": "",
228
+ "Choose a locale to translate from the menu above": "",
229
+ "Translate: {{objectName}}": "",
230
+ "Save translations": "",
231
+ "Could not load translations": "",
232
+ "Retry": "",
225
233
  "Series": "Série",
226
234
  "Category": "Categoria",
227
235
  "Filter": "Filtro",
@@ -230,6 +230,14 @@
230
230
  "Six-months": "Полугодие",
231
231
  "Financial Years": "Финансовые годы",
232
232
  "Years": "Годы",
233
+ "Translating to": "",
234
+ "Choose a locale": "",
235
+ "Base locale reference": "",
236
+ "Choose a locale to translate from the menu above": "",
237
+ "Translate: {{objectName}}": "",
238
+ "Save translations": "",
239
+ "Could not load translations": "",
240
+ "Retry": "",
233
241
  "Series": "Ряды",
234
242
  "Category": "Категория",
235
243
  "Filter": "Фильтр",
@@ -222,6 +222,14 @@
222
222
  "Six-months": "",
223
223
  "Financial Years": "",
224
224
  "Years": "År",
225
+ "Translating to": "",
226
+ "Choose a locale": "",
227
+ "Base locale reference": "",
228
+ "Choose a locale to translate from the menu above": "",
229
+ "Translate: {{objectName}}": "",
230
+ "Save translations": "",
231
+ "Could not load translations": "",
232
+ "Retry": "",
225
233
  "Series": "",
226
234
  "Category": "",
227
235
  "Filter": "Filtrera",
@@ -218,6 +218,14 @@
218
218
  "Six-months": "Fulan-nén",
219
219
  "Financial Years": "",
220
220
  "Years": "Tinan",
221
+ "Translating to": "",
222
+ "Choose a locale": "",
223
+ "Base locale reference": "",
224
+ "Choose a locale to translate from the menu above": "",
225
+ "Translate: {{objectName}}": "",
226
+ "Save translations": "",
227
+ "Could not load translations": "",
228
+ "Retry": "",
221
229
  "Series": "Séries",
222
230
  "Category": "Kategoria",
223
231
  "Filter": "Filtru",
@@ -222,6 +222,14 @@
222
222
  "Six-months": "Шашмоҳаҳо",
223
223
  "Financial Years": "",
224
224
  "Years": "Солҳо",
225
+ "Translating to": "",
226
+ "Choose a locale": "",
227
+ "Base locale reference": "",
228
+ "Choose a locale to translate from the menu above": "",
229
+ "Translate: {{objectName}}": "",
230
+ "Save translations": "",
231
+ "Could not load translations": "",
232
+ "Retry": "",
225
233
  "Series": "Силсила",
226
234
  "Category": "Категория",
227
235
  "Filter": "Филтр",
@@ -230,6 +230,14 @@
230
230
  "Six-months": "Півріччя",
231
231
  "Financial Years": "",
232
232
  "Years": "Роки",
233
+ "Translating to": "",
234
+ "Choose a locale": "",
235
+ "Base locale reference": "",
236
+ "Choose a locale to translate from the menu above": "",
237
+ "Translate: {{objectName}}": "",
238
+ "Save translations": "",
239
+ "Could not load translations": "",
240
+ "Retry": "",
233
241
  "Series": "",
234
242
  "Category": "Категорія",
235
243
  "Filter": "Фільтр",
@@ -222,6 +222,14 @@
222
222
  "Six-months": "چھ ماہ",
223
223
  "Financial Years": "",
224
224
  "Years": "سال",
225
+ "Translating to": "",
226
+ "Choose a locale": "",
227
+ "Base locale reference": "",
228
+ "Choose a locale to translate from the menu above": "",
229
+ "Translate: {{objectName}}": "",
230
+ "Save translations": "",
231
+ "Could not load translations": "",
232
+ "Retry": "",
225
233
  "Series": "سیریز",
226
234
  "Category": "قسم",
227
235
  "Filter": "فلٹر",
@@ -218,6 +218,14 @@
218
218
  "Six-months": "Ярим йиллик",
219
219
  "Financial Years": "Молиявий йиллар",
220
220
  "Years": "Йиллар",
221
+ "Translating to": "",
222
+ "Choose a locale": "",
223
+ "Base locale reference": "",
224
+ "Choose a locale to translate from the menu above": "",
225
+ "Translate: {{objectName}}": "",
226
+ "Save translations": "",
227
+ "Could not load translations": "",
228
+ "Retry": "",
221
229
  "Series": "Кетма-кетликлар",
222
230
  "Category": "Категория",
223
231
  "Filter": "Фильтр",
@@ -218,6 +218,14 @@
218
218
  "Six-months": "Yarim yillik",
219
219
  "Financial Years": "Moliyaviy yillar",
220
220
  "Years": "Yillar",
221
+ "Translating to": "",
222
+ "Choose a locale": "",
223
+ "Base locale reference": "",
224
+ "Choose a locale to translate from the menu above": "",
225
+ "Translate: {{objectName}}": "",
226
+ "Save translations": "",
227
+ "Could not load translations": "",
228
+ "Retry": "",
221
229
  "Series": "Ketma-ketliklar",
222
230
  "Category": "Kategoriya",
223
231
  "Filter": "Filtr",
@@ -218,6 +218,14 @@
218
218
  "Six-months": "Sáu-tháng",
219
219
  "Financial Years": "Năm tài chính",
220
220
  "Years": "Năm",
221
+ "Translating to": "",
222
+ "Choose a locale": "",
223
+ "Base locale reference": "",
224
+ "Choose a locale to translate from the menu above": "",
225
+ "Translate: {{objectName}}": "",
226
+ "Save translations": "",
227
+ "Could not load translations": "",
228
+ "Retry": "",
221
229
  "Series": "Chuỗi Dữ Liệu",
222
230
  "Category": "Phân loại",
223
231
  "Filter": "Lọc",
@@ -218,6 +218,14 @@
218
218
  "Six-months": "Six-months",
219
219
  "Financial Years": "Financial Years",
220
220
  "Years": "年",
221
+ "Translating to": "翻译成",
222
+ "Choose a locale": "选择语言环境",
223
+ "Base locale reference": "基本语言环境参考",
224
+ "Choose a locale to translate from the menu above": "从上面的菜单中选择要翻译的语言环境",
225
+ "Translate: {{objectName}}": "翻译:{{objectName}}",
226
+ "Save translations": "保存翻译",
227
+ "Could not load translations": "",
228
+ "Retry": "重试",
221
229
  "Series": "系列",
222
230
  "Category": "分类",
223
231
  "Filter": "过滤器",
@@ -218,6 +218,14 @@
218
218
  "Six-months": "",
219
219
  "Financial Years": "",
220
220
  "Years": "年",
221
+ "Translating to": "",
222
+ "Choose a locale": "",
223
+ "Base locale reference": "",
224
+ "Choose a locale to translate from the menu above": "",
225
+ "Translate: {{objectName}}": "",
226
+ "Save translations": "",
227
+ "Could not load translations": "",
228
+ "Retry": "",
221
229
  "Series": "",
222
230
  "Category": "分类",
223
231
  "Filter": "过滤器",
@@ -16,17 +16,13 @@ export const TranslationForm = ({
16
16
  }) => {
17
17
  const [newTranslations, setNewTranslations] = useState();
18
18
  const [translationLocale, setTranslationLocale] = useState();
19
+ const [fieldsTranslations, setFieldsTranslations] = useState({});
19
20
  const {
20
21
  show: showError
21
22
  } = useAlert(error => error, {
22
23
  critical: true
23
24
  });
24
25
 
25
- const formatFieldLabel = field => {
26
- field.replace(/[a-z][A-Z]/g, match => [match.charAt(0), match.charAt(1)].join(' ')).toLowerCase();
27
- return field.charAt(0).toUpperCase() + field.slice(1);
28
- };
29
-
30
26
  const camelCaseToUnderscores = field => field.replace(/[a-z][A-Z]/g, match => [match.charAt(0), match.charAt(1)].join('_')).toLowerCase();
31
27
 
32
28
  const getTranslationIndexForField = field => newTranslations.findIndex(element => element.locale === translationLocale && element.property.toLowerCase() === camelCaseToUnderscores(field));
@@ -48,6 +44,14 @@ export const TranslationForm = ({
48
44
  setNewTranslations(translationIndex === -1 ? [...newTranslations, newTranslation] : newTranslations.map((translation, index) => index === translationIndex ? newTranslation : translation));
49
45
  };
50
46
 
47
+ const [fetchFieldsTranslations] = useDataMutation({
48
+ resource: 'i18n',
49
+ type: 'create',
50
+ data: fieldsToTranslate.map(camelCaseToUnderscores)
51
+ }, {
52
+ onComplete: res => setFieldsTranslations(res),
53
+ onError: error => showError(error)
54
+ });
51
55
  const translationsMutationRef = useRef({
52
56
  resource: "".concat(resource, "/translations"),
53
57
  type: 'update',
@@ -64,9 +68,7 @@ export const TranslationForm = ({
64
68
  onTranslationSaved();
65
69
  onClose();
66
70
  },
67
- onError: error => {
68
- showError(error);
69
- }
71
+ onError: error => showError(error)
70
72
  });
71
73
 
72
74
  const onLocaleChange = locale => {
@@ -79,6 +81,11 @@ export const TranslationForm = ({
79
81
  });
80
82
 
81
83
  useEffect(() => setTranslationLocale(window.sessionStorage.getItem(SESSION_STORAGE_TRANSLATION_LOCALE_KEY)), []);
84
+ useEffect(() => {
85
+ const fetchTranslations = () => fetchFieldsTranslations(fieldsToTranslate);
86
+
87
+ fetchTranslations();
88
+ }, [fieldsToTranslate]);
82
89
  useEffect(() => setNewTranslations(translations), [translations]);
83
90
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ModalContent, null, /*#__PURE__*/React.createElement(DataTable, {
84
91
  layout: "fixed"
@@ -93,21 +100,17 @@ export const TranslationForm = ({
93
100
  onChange: onLocaleChange
94
101
  })))), /*#__PURE__*/React.createElement(DataTableBody, null, fieldsToTranslate.map((field, index) => /*#__PURE__*/React.createElement(DataTableRow, {
95
102
  key: field
96
- }, /*#__PURE__*/React.createElement(DataTableCell, null, /*#__PURE__*/React.createElement("div", {
97
- className: ""
98
- }, /*#__PURE__*/React.createElement(InputField, {
99
- label: formatFieldLabel(field),
103
+ }, /*#__PURE__*/React.createElement(DataTableCell, null, /*#__PURE__*/React.createElement(InputField, {
104
+ label: fieldsTranslations[field],
100
105
  value: objectToTranslate[field],
101
106
  readOnly: true
102
- }))), translationLocale && /*#__PURE__*/React.createElement(DataTableCell, null, /*#__PURE__*/React.createElement("div", {
103
- className: ""
104
- }, /*#__PURE__*/React.createElement(InputField, {
105
- label: formatFieldLabel(field),
107
+ })), translationLocale && /*#__PURE__*/React.createElement(DataTableCell, null, /*#__PURE__*/React.createElement(InputField, {
108
+ label: fieldsTranslations[field],
106
109
  value: getTranslationForField(field),
107
110
  onChange: ({
108
111
  value
109
112
  }) => setTranslationForField(field, value)
110
- }))), !translationLocale && index === 0 && /*#__PURE__*/React.createElement(DataTableCell, {
113
+ })), !translationLocale && index === 0 && /*#__PURE__*/React.createElement(DataTableCell, {
111
114
  rowSpan: String(fieldsToTranslate.length)
112
115
  }, /*#__PURE__*/React.createElement(CenteredContent, null, i18n.t('Choose a locale to translate from the menu above')))))))), /*#__PURE__*/React.createElement(TranslationModalActions, {
113
116
  onClose: onClose,
@@ -238,6 +238,14 @@
238
238
  "Six-months": "ستة-أشهر",
239
239
  "Financial Years": "السنوات المالية",
240
240
  "Years": "السنوات",
241
+ "Translating to": "",
242
+ "Choose a locale": "",
243
+ "Base locale reference": "",
244
+ "Choose a locale to translate from the menu above": "",
245
+ "Translate: {{objectName}}": "",
246
+ "Save translations": "",
247
+ "Could not load translations": "",
248
+ "Retry": "",
241
249
  "Series": "سلسلة",
242
250
  "Category": "الفئة",
243
251
  "Filter": "عامل التصفية",
@@ -238,6 +238,14 @@
238
238
  "Six-months": "",
239
239
  "Financial Years": "",
240
240
  "Years": "",
241
+ "Translating to": "",
242
+ "Choose a locale": "",
243
+ "Base locale reference": "",
244
+ "Choose a locale to translate from the menu above": "",
245
+ "Translate: {{objectName}}": "",
246
+ "Save translations": "",
247
+ "Could not load translations": "",
248
+ "Retry": "",
241
249
  "Series": "",
242
250
  "Category": "",
243
251
  "Filter": "",
@@ -238,6 +238,14 @@
238
238
  "Six-months": "ستة أشهر",
239
239
  "Financial Years": "",
240
240
  "Years": "السنوات",
241
+ "Translating to": "",
242
+ "Choose a locale": "",
243
+ "Base locale reference": "",
244
+ "Choose a locale to translate from the menu above": "",
245
+ "Translate: {{objectName}}": "",
246
+ "Save translations": "",
247
+ "Could not load translations": "",
248
+ "Retry": "",
241
249
  "Series": "",
242
250
  "Category": "",
243
251
  "Filter": "",
@@ -222,6 +222,14 @@
222
222
  "Six-months": "",
223
223
  "Financial Years": "",
224
224
  "Years": "ساڵەکان",
225
+ "Translating to": "",
226
+ "Choose a locale": "",
227
+ "Base locale reference": "",
228
+ "Choose a locale to translate from the menu above": "",
229
+ "Translate: {{objectName}}": "",
230
+ "Save translations": "",
231
+ "Could not load translations": "",
232
+ "Retry": "",
225
233
  "Series": "",
226
234
  "Category": "",
227
235
  "Filter": "",
@@ -230,6 +230,14 @@
230
230
  "Six-months": "Půlrok",
231
231
  "Financial Years": "Finanční roky",
232
232
  "Years": "Let",
233
+ "Translating to": "",
234
+ "Choose a locale": "",
235
+ "Base locale reference": "",
236
+ "Choose a locale to translate from the menu above": "",
237
+ "Translate: {{objectName}}": "",
238
+ "Save translations": "",
239
+ "Could not load translations": "",
240
+ "Retry": "",
233
241
  "Series": "Série",
234
242
  "Category": "Kategorie",
235
243
  "Filter": "Filtr",
@@ -222,6 +222,14 @@
222
222
  "Six-months": "",
223
223
  "Financial Years": "",
224
224
  "Years": "",
225
+ "Translating to": "",
226
+ "Choose a locale": "",
227
+ "Base locale reference": "",
228
+ "Choose a locale to translate from the menu above": "",
229
+ "Translate: {{objectName}}": "",
230
+ "Save translations": "",
231
+ "Could not load translations": "",
232
+ "Retry": "",
225
233
  "Series": "",
226
234
  "Category": "Category",
227
235
  "Filter": "Filter",
@@ -222,6 +222,14 @@
222
222
  "Six-months": "Semestres",
223
223
  "Financial Years": "",
224
224
  "Years": "Años",
225
+ "Translating to": "",
226
+ "Choose a locale": "",
227
+ "Base locale reference": "",
228
+ "Choose a locale to translate from the menu above": "",
229
+ "Translate: {{objectName}}": "",
230
+ "Save translations": "",
231
+ "Could not load translations": "",
232
+ "Retry": "",
225
233
  "Series": "",
226
234
  "Category": "Categoría",
227
235
  "Filter": "filtro",
@@ -222,6 +222,14 @@
222
222
  "Six-months": "Semestres",
223
223
  "Financial Years": "Années fiscales",
224
224
  "Years": "Années",
225
+ "Translating to": "",
226
+ "Choose a locale": "",
227
+ "Base locale reference": "",
228
+ "Choose a locale to translate from the menu above": "",
229
+ "Translate: {{objectName}}": "",
230
+ "Save translations": "",
231
+ "Could not load translations": "",
232
+ "Retry": "",
225
233
  "Series": "Séries",
226
234
  "Category": "Catégorie",
227
235
  "Filter": "Filtrer",
@@ -218,6 +218,14 @@
218
218
  "Six-months": "Semester",
219
219
  "Financial Years": "Keuangan tahunan",
220
220
  "Years": "Tahun",
221
+ "Translating to": "",
222
+ "Choose a locale": "",
223
+ "Base locale reference": "",
224
+ "Choose a locale to translate from the menu above": "",
225
+ "Translate: {{objectName}}": "",
226
+ "Save translations": "",
227
+ "Could not load translations": "",
228
+ "Retry": "",
221
229
  "Series": "Seri",
222
230
  "Category": "Kategori",
223
231
  "Filter": "Saring",
@@ -218,6 +218,14 @@
218
218
  "Six-months": "",
219
219
  "Financial Years": "",
220
220
  "Years": "ឆ្នាំ",
221
+ "Translating to": "",
222
+ "Choose a locale": "",
223
+ "Base locale reference": "",
224
+ "Choose a locale to translate from the menu above": "",
225
+ "Translate: {{objectName}}": "",
226
+ "Save translations": "",
227
+ "Could not load translations": "",
228
+ "Retry": "",
221
229
  "Series": "",
222
230
  "Category": "",
223
231
  "Filter": "",
@@ -218,6 +218,14 @@
218
218
  "Six-months": "6 ເດືອນ",
219
219
  "Financial Years": "",
220
220
  "Years": "ປີ",
221
+ "Translating to": "",
222
+ "Choose a locale": "",
223
+ "Base locale reference": "",
224
+ "Choose a locale to translate from the menu above": "",
225
+ "Translate: {{objectName}}": "",
226
+ "Save translations": "",
227
+ "Could not load translations": "",
228
+ "Retry": "",
221
229
  "Series": "ແທ່ງ",
222
230
  "Category": "ລວງນອນ",
223
231
  "Filter": "Filter",
@@ -218,6 +218,14 @@
218
218
  "Six-months": "၆ လ",
219
219
  "Financial Years": "",
220
220
  "Years": "နှစ်များ",
221
+ "Translating to": "",
222
+ "Choose a locale": "",
223
+ "Base locale reference": "",
224
+ "Choose a locale to translate from the menu above": "",
225
+ "Translate: {{objectName}}": "",
226
+ "Save translations": "",
227
+ "Could not load translations": "",
228
+ "Retry": "",
221
229
  "Series": "အစဉ်အတန်းများ",
222
230
  "Category": "category",
223
231
  "Filter": "ရှာဖွေထုတ်သည်",
@@ -222,6 +222,14 @@
222
222
  "Six-months": "Halvår",
223
223
  "Financial Years": "Regnskapsår",
224
224
  "Years": "År",
225
+ "Translating to": "",
226
+ "Choose a locale": "",
227
+ "Base locale reference": "",
228
+ "Choose a locale to translate from the menu above": "",
229
+ "Translate: {{objectName}}": "",
230
+ "Save translations": "",
231
+ "Could not load translations": "",
232
+ "Retry": "",
225
233
  "Series": "Serie",
226
234
  "Category": "Kategori",
227
235
  "Filter": "Filter",
@@ -222,6 +222,14 @@
222
222
  "Six-months": "",
223
223
  "Financial Years": "",
224
224
  "Years": "",
225
+ "Translating to": "",
226
+ "Choose a locale": "",
227
+ "Base locale reference": "",
228
+ "Choose a locale to translate from the menu above": "",
229
+ "Translate: {{objectName}}": "",
230
+ "Save translations": "",
231
+ "Could not load translations": "",
232
+ "Retry": "",
225
233
  "Series": "",
226
234
  "Category": "",
227
235
  "Filter": "",
@@ -222,6 +222,14 @@
222
222
  "Six-months": "شش-ماهه",
223
223
  "Financial Years": "",
224
224
  "Years": "سالانه",
225
+ "Translating to": "",
226
+ "Choose a locale": "",
227
+ "Base locale reference": "",
228
+ "Choose a locale to translate from the menu above": "",
229
+ "Translate: {{objectName}}": "",
230
+ "Save translations": "",
231
+ "Could not load translations": "",
232
+ "Retry": "",
225
233
  "Series": "سلسله (لړۍ)",
226
234
  "Category": "دسته بندی",
227
235
  "Filter": "فلتر",
@@ -222,6 +222,14 @@
222
222
  "Six-months": "شپږ میاشتې",
223
223
  "Financial Years": "",
224
224
  "Years": "کلونه",
225
+ "Translating to": "",
226
+ "Choose a locale": "",
227
+ "Base locale reference": "",
228
+ "Choose a locale to translate from the menu above": "",
229
+ "Translate: {{objectName}}": "",
230
+ "Save translations": "",
231
+ "Could not load translations": "",
232
+ "Retry": "",
225
233
  "Series": "سلسله (لړۍ)",
226
234
  "Category": "کټګوري",
227
235
  "Filter": "فیلټر",
@@ -222,6 +222,14 @@
222
222
  "Six-months": "Seis meses",
223
223
  "Financial Years": "Ano financeiro ",
224
224
  "Years": "Anos",
225
+ "Translating to": "",
226
+ "Choose a locale": "",
227
+ "Base locale reference": "",
228
+ "Choose a locale to translate from the menu above": "",
229
+ "Translate: {{objectName}}": "",
230
+ "Save translations": "",
231
+ "Could not load translations": "",
232
+ "Retry": "",
225
233
  "Series": "Série",
226
234
  "Category": "Categoria",
227
235
  "Filter": "Filtro",
@@ -222,6 +222,14 @@
222
222
  "Six-months": "",
223
223
  "Financial Years": "",
224
224
  "Years": "Anos",
225
+ "Translating to": "",
226
+ "Choose a locale": "",
227
+ "Base locale reference": "",
228
+ "Choose a locale to translate from the menu above": "",
229
+ "Translate: {{objectName}}": "",
230
+ "Save translations": "",
231
+ "Could not load translations": "",
232
+ "Retry": "",
225
233
  "Series": "Série",
226
234
  "Category": "Categoria",
227
235
  "Filter": "Filtro",
@@ -230,6 +230,14 @@
230
230
  "Six-months": "Полугодие",
231
231
  "Financial Years": "Финансовые годы",
232
232
  "Years": "Годы",
233
+ "Translating to": "",
234
+ "Choose a locale": "",
235
+ "Base locale reference": "",
236
+ "Choose a locale to translate from the menu above": "",
237
+ "Translate: {{objectName}}": "",
238
+ "Save translations": "",
239
+ "Could not load translations": "",
240
+ "Retry": "",
233
241
  "Series": "Ряды",
234
242
  "Category": "Категория",
235
243
  "Filter": "Фильтр",
@@ -222,6 +222,14 @@
222
222
  "Six-months": "",
223
223
  "Financial Years": "",
224
224
  "Years": "År",
225
+ "Translating to": "",
226
+ "Choose a locale": "",
227
+ "Base locale reference": "",
228
+ "Choose a locale to translate from the menu above": "",
229
+ "Translate: {{objectName}}": "",
230
+ "Save translations": "",
231
+ "Could not load translations": "",
232
+ "Retry": "",
225
233
  "Series": "",
226
234
  "Category": "",
227
235
  "Filter": "Filtrera",
@@ -218,6 +218,14 @@
218
218
  "Six-months": "Fulan-nén",
219
219
  "Financial Years": "",
220
220
  "Years": "Tinan",
221
+ "Translating to": "",
222
+ "Choose a locale": "",
223
+ "Base locale reference": "",
224
+ "Choose a locale to translate from the menu above": "",
225
+ "Translate: {{objectName}}": "",
226
+ "Save translations": "",
227
+ "Could not load translations": "",
228
+ "Retry": "",
221
229
  "Series": "Séries",
222
230
  "Category": "Kategoria",
223
231
  "Filter": "Filtru",
@@ -222,6 +222,14 @@
222
222
  "Six-months": "Шашмоҳаҳо",
223
223
  "Financial Years": "",
224
224
  "Years": "Солҳо",
225
+ "Translating to": "",
226
+ "Choose a locale": "",
227
+ "Base locale reference": "",
228
+ "Choose a locale to translate from the menu above": "",
229
+ "Translate: {{objectName}}": "",
230
+ "Save translations": "",
231
+ "Could not load translations": "",
232
+ "Retry": "",
225
233
  "Series": "Силсила",
226
234
  "Category": "Категория",
227
235
  "Filter": "Филтр",
@@ -230,6 +230,14 @@
230
230
  "Six-months": "Півріччя",
231
231
  "Financial Years": "",
232
232
  "Years": "Роки",
233
+ "Translating to": "",
234
+ "Choose a locale": "",
235
+ "Base locale reference": "",
236
+ "Choose a locale to translate from the menu above": "",
237
+ "Translate: {{objectName}}": "",
238
+ "Save translations": "",
239
+ "Could not load translations": "",
240
+ "Retry": "",
233
241
  "Series": "",
234
242
  "Category": "Категорія",
235
243
  "Filter": "Фільтр",
@@ -222,6 +222,14 @@
222
222
  "Six-months": "چھ ماہ",
223
223
  "Financial Years": "",
224
224
  "Years": "سال",
225
+ "Translating to": "",
226
+ "Choose a locale": "",
227
+ "Base locale reference": "",
228
+ "Choose a locale to translate from the menu above": "",
229
+ "Translate: {{objectName}}": "",
230
+ "Save translations": "",
231
+ "Could not load translations": "",
232
+ "Retry": "",
225
233
  "Series": "سیریز",
226
234
  "Category": "قسم",
227
235
  "Filter": "فلٹر",
@@ -218,6 +218,14 @@
218
218
  "Six-months": "Ярим йиллик",
219
219
  "Financial Years": "Молиявий йиллар",
220
220
  "Years": "Йиллар",
221
+ "Translating to": "",
222
+ "Choose a locale": "",
223
+ "Base locale reference": "",
224
+ "Choose a locale to translate from the menu above": "",
225
+ "Translate: {{objectName}}": "",
226
+ "Save translations": "",
227
+ "Could not load translations": "",
228
+ "Retry": "",
221
229
  "Series": "Кетма-кетликлар",
222
230
  "Category": "Категория",
223
231
  "Filter": "Фильтр",
@@ -218,6 +218,14 @@
218
218
  "Six-months": "Yarim yillik",
219
219
  "Financial Years": "Moliyaviy yillar",
220
220
  "Years": "Yillar",
221
+ "Translating to": "",
222
+ "Choose a locale": "",
223
+ "Base locale reference": "",
224
+ "Choose a locale to translate from the menu above": "",
225
+ "Translate: {{objectName}}": "",
226
+ "Save translations": "",
227
+ "Could not load translations": "",
228
+ "Retry": "",
221
229
  "Series": "Ketma-ketliklar",
222
230
  "Category": "Kategoriya",
223
231
  "Filter": "Filtr",
@@ -218,6 +218,14 @@
218
218
  "Six-months": "Sáu-tháng",
219
219
  "Financial Years": "Năm tài chính",
220
220
  "Years": "Năm",
221
+ "Translating to": "",
222
+ "Choose a locale": "",
223
+ "Base locale reference": "",
224
+ "Choose a locale to translate from the menu above": "",
225
+ "Translate: {{objectName}}": "",
226
+ "Save translations": "",
227
+ "Could not load translations": "",
228
+ "Retry": "",
221
229
  "Series": "Chuỗi Dữ Liệu",
222
230
  "Category": "Phân loại",
223
231
  "Filter": "Lọc",
@@ -218,6 +218,14 @@
218
218
  "Six-months": "Six-months",
219
219
  "Financial Years": "Financial Years",
220
220
  "Years": "年",
221
+ "Translating to": "翻译成",
222
+ "Choose a locale": "选择语言环境",
223
+ "Base locale reference": "基本语言环境参考",
224
+ "Choose a locale to translate from the menu above": "从上面的菜单中选择要翻译的语言环境",
225
+ "Translate: {{objectName}}": "翻译:{{objectName}}",
226
+ "Save translations": "保存翻译",
227
+ "Could not load translations": "",
228
+ "Retry": "重试",
221
229
  "Series": "系列",
222
230
  "Category": "分类",
223
231
  "Filter": "过滤器",
@@ -218,6 +218,14 @@
218
218
  "Six-months": "",
219
219
  "Financial Years": "",
220
220
  "Years": "年",
221
+ "Translating to": "",
222
+ "Choose a locale": "",
223
+ "Base locale reference": "",
224
+ "Choose a locale to translate from the menu above": "",
225
+ "Translate: {{objectName}}": "",
226
+ "Save translations": "",
227
+ "Could not load translations": "",
228
+ "Retry": "",
221
229
  "Series": "",
222
230
  "Category": "分类",
223
231
  "Filter": "过滤器",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2/analytics",
3
- "version": "21.2.0",
3
+ "version": "21.2.4",
4
4
  "main": "./build/cjs/index.js",
5
5
  "module": "./build/es/index.js",
6
6
  "exports": {