lecom-ui 2.9.5 → 2.9.6

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.
@@ -6,9 +6,8 @@ import { ScrollArea } from '../ScrollArea/ScrollArea.js';
6
6
  import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from '../Select/Select.js';
7
7
  import { useIsMobile } from '../../hooks/use-mobile.js';
8
8
  import { User } from 'lucide-react';
9
- import '../../i18n/index.js';
9
+ import i18n from '../../i18n/index.js';
10
10
  import { TooltipProvider, Tooltip, TooltipTrigger, TooltipContent } from '../Tooltip/Tooltip.js';
11
- import i18n from 'i18next';
12
11
 
13
12
  const UserMenu = ({
14
13
  customStyles,
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { useTranslation, I18nextProvider } from 'react-i18next';
3
- import '../../i18n/index.js';
3
+ import i18n from '../../i18n/index.js';
4
4
  import { getCookie } from '../../utils/cookie.js';
5
5
  import '../CustomIcon/Icons/CadastroFacil.js';
6
6
  import '../CustomIcon/Icons/LogoLecom.js';
@@ -10,7 +10,6 @@ import { LogoLecomBrand } from '../CustomIcon/Icons/LogoLecomBrand.js';
10
10
  import { Header } from '../Header/Header.js';
11
11
  import { SidebarProvider, Sidebar, SidebarContent, SidebarGroup, SidebarGroupContent, SidebarMenu, SidebarMenuItem, SidebarMenuButton, SidebarFooter } from '../Sidebar/Sidebar.js';
12
12
  import { Typography } from '../Typography/Typography.js';
13
- import i18n from 'i18next';
14
13
 
15
14
  const Layout = ({ children, header, sideBar }) => {
16
15
  const { t } = useTranslation();
@@ -1,6 +1,4 @@
1
- import { initReactI18next } from 'react-i18next';
2
- import i18n from 'i18next';
3
- export { default } from 'i18next';
1
+ import { createInstance } from 'i18next';
4
2
  import { translations } from './locales/index.js';
5
3
 
6
4
  var Translations = /* @__PURE__ */ ((Translations2) => {
@@ -18,6 +16,7 @@ const i18nConfig = {
18
16
  escapeValue: false
19
17
  }
20
18
  };
21
- i18n.use(initReactI18next).init(i18nConfig);
19
+ const i18n = createInstance(i18nConfig);
20
+ i18n.init();
22
21
 
23
- export { Translations };
22
+ export { Translations, i18n as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lecom-ui",
3
- "version": "2.9.5",
3
+ "version": "2.9.6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",