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.
@@ -7,7 +7,7 @@ import 'react-phone-input-2/lib/style.css';
7
7
  import PhoneInput from 'react-phone-input-2';
8
8
  import message from 'antd/es/message';
9
9
  import Parser from 'html-react-parser';
10
- import { useTranslation } from 'react-i18next';
10
+ import { initReactI18next, useTranslation } from 'react-i18next';
11
11
  import { locale, loadMessages } from 'devextreme/localization';
12
12
  import { DataGrid, LoadPanel, Paging, Pager, SearchPanel, FilterRow, FilterPanel, RemoteOperations, HeaderFilter, ColumnChooser, Position, ColumnChooserSearch, ColumnChooserSelection, Selection, Editing, Popup, Form as Form$1, Scrolling, Export, Column, RequiredRule, Button as Button$1, Toolbar, Item as Item$1, Summary, TotalItem, StateStoring } from 'devextreme-react/data-grid';
13
13
  import { Item } from 'devextreme-react/form';
@@ -17,6 +17,7 @@ import jsPDF from 'jspdf';
17
17
  import { Workbook } from 'exceljs';
18
18
  import { saveAs } from 'file-saver-es';
19
19
  import moment from 'moment';
20
+ import i18n from 'i18next';
20
21
  import { CheckBox, Lookup, TreeList } from 'devextreme-react';
21
22
  import { createStore } from 'devextreme-aspnet-data-nojquery';
22
23
  import { TreeView } from 'devextreme-react/tree-view';
@@ -1183,6 +1184,53 @@ function OdsLogin(props) {
1183
1184
  }, "Log in"))));
1184
1185
  }
1185
1186
 
1187
+ var resources = {
1188
+ en: {
1189
+ translation: JSON.parse(localStorage.getItem("LanguageSelect"))
1190
+ },
1191
+ tr: {
1192
+ translation: JSON.parse(localStorage.getItem("LanguageSelect"))
1193
+ },
1194
+ pl: {
1195
+ translation: JSON.parse(localStorage.getItem("LanguageSelect"))
1196
+ },
1197
+ ru: {
1198
+ translation: JSON.parse(localStorage.getItem("LanguageSelect"))
1199
+ },
1200
+ es: {
1201
+ translation: JSON.parse(localStorage.getItem("LanguageSelect"))
1202
+ },
1203
+ de: {
1204
+ translation: JSON.parse(localStorage.getItem("LanguageSelect"))
1205
+ },
1206
+ fr: {
1207
+ translation: JSON.parse(localStorage.getItem("LanguageSelect"))
1208
+ },
1209
+ it: {
1210
+ translation: JSON.parse(localStorage.getItem("LanguageSelect"))
1211
+ },
1212
+ ua: {
1213
+ translation: JSON.parse(localStorage.getItem("LanguageSelect"))
1214
+ },
1215
+ et: {
1216
+ translation: JSON.parse(localStorage.getItem("LanguageSelect"))
1217
+ },
1218
+ lv: {
1219
+ translation: JSON.parse(localStorage.getItem("LanguageSelect"))
1220
+ },
1221
+ lt: {
1222
+ translation: JSON.parse(localStorage.getItem("LanguageSelect"))
1223
+ }
1224
+ };
1225
+ i18n.use(initReactI18next).init({
1226
+ resources: resources,
1227
+ lng: "en",
1228
+ keySeparator: false,
1229
+ interpolation: {
1230
+ escapeValue: false
1231
+ }
1232
+ });
1233
+
1186
1234
  var exportFormats = ['xlsx'];
1187
1235
  var searchEditorOptions = {
1188
1236
  placeholder: 'Search column'
@@ -1389,7 +1437,7 @@ function grid(props, dataGridRef) {
1389
1437
  if (props.customPopup !== undefined) {
1390
1438
  return React.createElement(Column, {
1391
1439
  dataField: "Actions",
1392
- caption: "Actions",
1440
+ caption: t("Edit"),
1393
1441
  type: "buttons",
1394
1442
  width: 110,
1395
1443
  showInColumnChooser: false