ods-component-lib 1.17.70 → 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.
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
2
  import "./DxDataGrid.css";
3
+ import "./i18n";
3
4
  declare function OdsDataGrid(props: any): React.JSX.Element;
4
5
  export default OdsDataGrid;
package/dist/index.js CHANGED
@@ -21,6 +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
+ var i18n = _interopDefault(require('i18next'));
24
25
  var devextremeReact = require('devextreme-react');
25
26
  var AspNetData = require('devextreme-aspnet-data-nojquery');
26
27
  var treeView = require('devextreme-react/tree-view');
@@ -1187,6 +1188,53 @@ function OdsLogin(props) {
1187
1188
  }, "Log in"))));
1188
1189
  }
1189
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
+
1190
1238
  var exportFormats = ['xlsx'];
1191
1239
  var searchEditorOptions = {
1192
1240
  placeholder: 'Search column'
@@ -1393,7 +1441,7 @@ function grid(props, dataGridRef) {
1393
1441
  if (props.customPopup !== undefined) {
1394
1442
  return React__default.createElement(dataGrid.Column, {
1395
1443
  dataField: "Actions",
1396
- caption: "Actions",
1444
+ caption: t("Edit"),
1397
1445
  type: "buttons",
1398
1446
  width: 110,
1399
1447
  showInColumnChooser: false