lecom-ui 2.8.3 → 2.8.5

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.
@@ -5,7 +5,7 @@ import { cn } from '../../lib/utils.js';
5
5
  import { cva } from 'class-variance-authority';
6
6
  import { Menu } from 'lucide-react';
7
7
  import { colorLuminance } from 'use-color-luminance';
8
- import i18n$1 from '../../i18n/index.js';
8
+ import '../../i18n/index.js';
9
9
  import { useSidebar } from '../Sidebar/Sidebar.js';
10
10
  import { TooltipProvider, Tooltip, TooltipTrigger, TooltipContent } from '../Tooltip/Tooltip.js';
11
11
  import { HelpMenu } from './HelpMenu.js';
@@ -13,8 +13,8 @@ import { ImgBrand } from './ImgBrand.js';
13
13
  import { ModulesMenu } from './ModulesMenu.js';
14
14
  import { SocialMenu } from './SocialMenu.js';
15
15
  import { UserMenu } from './UserMenu.js';
16
+ import i18n from 'i18next';
16
17
 
17
- const i18n = i18n$1;
18
18
  const headerVariants = cva(
19
19
  "w-full h-12 bg-blue-800 flex items-center justify-center gap-4 px-4",
20
20
  {
@@ -93,4 +93,4 @@ const Header = ({
93
93
  };
94
94
  Header.displayName = "Header";
95
95
 
96
- export { Header, headerVariants, i18n };
96
+ export { Header, headerVariants };
@@ -6,8 +6,9 @@ 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 from '../../i18n/index.js';
9
+ import '../../i18n/index.js';
10
10
  import { TooltipProvider, Tooltip, TooltipTrigger, TooltipContent } from '../Tooltip/Tooltip.js';
11
+ import i18n from 'i18next';
11
12
 
12
13
  const UserMenu = ({
13
14
  customStyles,
@@ -1,7 +1,9 @@
1
- import { createInstance } from 'i18next';
1
+ import { initReactI18next } from 'react-i18next';
2
+ import i18n from 'i18next';
3
+ export { default } from 'i18next';
2
4
  import { translations } from './locales/index.js';
3
5
 
4
- const i18n = createInstance({
6
+ const i18nConfig = {
5
7
  resources: translations,
6
8
  lng: "pt_BR" /* PT_BR */,
7
9
  fallbackLng: "pt_BR" /* PT_BR */,
@@ -9,7 +11,5 @@ const i18n = createInstance({
9
11
  interpolation: {
10
12
  escapeValue: false
11
13
  }
12
- });
13
- i18n.init();
14
-
15
- export { i18n as default };
14
+ };
15
+ i18n.use(initReactI18next).init(i18nConfig);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lecom-ui",
3
- "version": "2.8.3",
3
+ "version": "2.8.5",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",