lecom-ui 2.9.5 → 2.9.7
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();
|
package/dist/i18n/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { initReactI18next } from 'react-i18next';
|
|
2
|
-
import
|
|
3
|
-
export { default } from 'i18next';
|
|
2
|
+
import { createInstance } from 'i18next';
|
|
4
3
|
import { translations } from './locales/index.js';
|
|
5
4
|
|
|
6
5
|
var Translations = /* @__PURE__ */ ((Translations2) => {
|
|
@@ -18,6 +17,7 @@ const i18nConfig = {
|
|
|
18
17
|
escapeValue: false
|
|
19
18
|
}
|
|
20
19
|
};
|
|
20
|
+
const i18n = createInstance();
|
|
21
21
|
i18n.use(initReactI18next).init(i18nConfig);
|
|
22
22
|
|
|
23
|
-
export { Translations };
|
|
23
|
+
export { Translations, i18n as default };
|