lecom-ui 3.8.8 → 3.9.0

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.
@@ -187,8 +187,8 @@ const Pagination = ({
187
187
  };
188
188
  return React.createElement(mappedComponents[item.type], componentProps);
189
189
  };
190
- console.log(i18n);
191
- return /* @__PURE__ */ React.createElement("div", { className: "flex items-center justify-between mt-6 gap-4" }, /* @__PURE__ */ React.createElement(I18nextProvider, { i18n, defaultNS: "translations_lecom_ui" }, t("pagination.show")), /* @__PURE__ */ React.createElement("div", { className: "flex items-center gap-4" }, /* @__PURE__ */ React.createElement(DropdownMenu, null, /* @__PURE__ */ React.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React.createElement(Button, { size: "small", color: "grey", variant: "outlined" }, /* @__PURE__ */ React.createElement("span", { className: "max-md:hidden" }, t("pagination.show")), " ", perPage, /* @__PURE__ */ React.createElement(ChevronDown, { size: 20 }))), /* @__PURE__ */ React.createElement(DropdownMenuContent, { side: "top", align: "center" }, perPageOptions.map((option) => /* @__PURE__ */ React.createElement(
190
+ console.log(t("pagination.show"));
191
+ return /* @__PURE__ */ React.createElement(I18nextProvider, { i18n }, /* @__PURE__ */ React.createElement("div", { className: "flex items-center justify-between mt-6 gap-4" }, /* @__PURE__ */ React.createElement("div", { className: "flex items-center gap-4" }, /* @__PURE__ */ React.createElement(DropdownMenu, null, /* @__PURE__ */ React.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React.createElement(Button, { size: "small", color: "grey", variant: "outlined" }, /* @__PURE__ */ React.createElement("span", { className: "max-md:hidden" }, t("pagination.show")), " ", perPage, /* @__PURE__ */ React.createElement(ChevronDown, { size: 20 }))), /* @__PURE__ */ React.createElement(DropdownMenuContent, { side: "top", align: "center" }, perPageOptions.map((option) => /* @__PURE__ */ React.createElement(
192
192
  DropdownMenuItem,
193
193
  {
194
194
  key: option.value,
@@ -197,7 +197,7 @@ const Pagination = ({
197
197
  }
198
198
  },
199
199
  option.value.toString()
200
- )))), totalRowsSelected > 0 && /* @__PURE__ */ React.createElement(Typography, { variant: "heading-xxsmall-600", textColor: "text-grey-800" }, totalRowsSelected, " ", t("pagination.selectedProcess"))), /* @__PURE__ */ React.createElement("nav", { role: "navigation", "aria-label": "pagination" }, /* @__PURE__ */ React.createElement(PaginationContent, null, itemsPage.map((item) => /* @__PURE__ */ React.createElement(PaginationItem, { key: item.id }, mapPaginationItem(item))))));
200
+ )))), totalRowsSelected > 0 && /* @__PURE__ */ React.createElement(Typography, { variant: "heading-xxsmall-600", textColor: "text-grey-800" }, totalRowsSelected, " ", t("pagination.selectedProcess"))), /* @__PURE__ */ React.createElement("nav", { role: "navigation", "aria-label": "pagination" }, /* @__PURE__ */ React.createElement(PaginationContent, null, itemsPage.map((item) => /* @__PURE__ */ React.createElement(PaginationItem, { key: item.id }, mapPaginationItem(item)))))));
201
201
  };
202
202
  Pagination.displayName = "Pagination";
203
203
 
@@ -1,3 +1,4 @@
1
+ import { initReactI18next } from 'react-i18next';
1
2
  import { createInstance } from 'i18next';
2
3
  import { translations } from './locales/index.js';
3
4
 
@@ -11,12 +12,12 @@ const i18nConfig = {
11
12
  resources: translations,
12
13
  lng: "pt_BR" /* PT_BR */,
13
14
  fallbackLng: "pt_BR" /* PT_BR */,
14
- defaultNS: "translations_lecom_ui",
15
+ defaultNS: "translations",
15
16
  interpolation: {
16
17
  escapeValue: false
17
18
  }
18
19
  };
19
- const i18n = createInstance(i18nConfig);
20
- i18n.init();
20
+ const i18n = createInstance();
21
+ i18n.use(initReactI18next).init(i18nConfig);
21
22
 
22
23
  export { Translations, i18n };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lecom-ui",
3
- "version": "3.8.8",
3
+ "version": "3.9.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",