ods-component-lib 1.17.71 → 1.17.72
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/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ var jsPDF = _interopDefault(require('jspdf'));
|
|
|
21
21
|
var exceljs = require('exceljs');
|
|
22
22
|
var fileSaverEs = require('file-saver-es');
|
|
23
23
|
var moment = _interopDefault(require('moment'));
|
|
24
|
-
require('
|
|
24
|
+
var i18n = _interopDefault(require('i18next'));
|
|
25
25
|
var devextremeReact = require('devextreme-react');
|
|
26
26
|
var AspNetData = require('devextreme-aspnet-data-nojquery');
|
|
27
27
|
var treeView = require('devextreme-react/tree-view');
|
|
@@ -1188,6 +1188,53 @@ function OdsLogin(props) {
|
|
|
1188
1188
|
}, "Log in"))));
|
|
1189
1189
|
}
|
|
1190
1190
|
|
|
1191
|
+
var resources = {
|
|
1192
|
+
en: {
|
|
1193
|
+
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1194
|
+
},
|
|
1195
|
+
tr: {
|
|
1196
|
+
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1197
|
+
},
|
|
1198
|
+
pl: {
|
|
1199
|
+
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1200
|
+
},
|
|
1201
|
+
ru: {
|
|
1202
|
+
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1203
|
+
},
|
|
1204
|
+
es: {
|
|
1205
|
+
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1206
|
+
},
|
|
1207
|
+
de: {
|
|
1208
|
+
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1209
|
+
},
|
|
1210
|
+
fr: {
|
|
1211
|
+
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1212
|
+
},
|
|
1213
|
+
it: {
|
|
1214
|
+
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1215
|
+
},
|
|
1216
|
+
ua: {
|
|
1217
|
+
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1218
|
+
},
|
|
1219
|
+
et: {
|
|
1220
|
+
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1221
|
+
},
|
|
1222
|
+
lv: {
|
|
1223
|
+
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1224
|
+
},
|
|
1225
|
+
lt: {
|
|
1226
|
+
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1227
|
+
}
|
|
1228
|
+
};
|
|
1229
|
+
i18n.use(reactI18next.initReactI18next).init({
|
|
1230
|
+
resources: resources,
|
|
1231
|
+
lng: "en",
|
|
1232
|
+
keySeparator: false,
|
|
1233
|
+
interpolation: {
|
|
1234
|
+
escapeValue: false
|
|
1235
|
+
}
|
|
1236
|
+
});
|
|
1237
|
+
|
|
1191
1238
|
var exportFormats = ['xlsx'];
|
|
1192
1239
|
var searchEditorOptions = {
|
|
1193
1240
|
placeholder: 'Search column'
|
|
@@ -1394,7 +1441,7 @@ function grid(props, dataGridRef) {
|
|
|
1394
1441
|
if (props.customPopup !== undefined) {
|
|
1395
1442
|
return React__default.createElement(dataGrid.Column, {
|
|
1396
1443
|
dataField: "Actions",
|
|
1397
|
-
caption: "
|
|
1444
|
+
caption: t("Edit"),
|
|
1398
1445
|
type: "buttons",
|
|
1399
1446
|
width: 110,
|
|
1400
1447
|
showInColumnChooser: false
|