lecom-ui 3.9.5 → 3.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.
- package/dist/i18n/index.js +7 -2
- package/dist/index.d.ts +4 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/i18n/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { initReactI18next } from 'react-i18next';
|
|
2
|
+
export { useTranslation } from 'react-i18next';
|
|
2
3
|
import i18n from 'i18next';
|
|
3
4
|
export { default as i18n } from 'i18next';
|
|
4
5
|
import { translations } from './locales/index.js';
|
|
@@ -18,9 +19,13 @@ const i18nConfig = {
|
|
|
18
19
|
escapeValue: false
|
|
19
20
|
}
|
|
20
21
|
};
|
|
22
|
+
console.log("i18n.isInitialized 0");
|
|
21
23
|
if (!i18n.isInitialized) {
|
|
22
|
-
console.log("i18n.isInitialized");
|
|
24
|
+
console.log("i18n.isInitialized 1");
|
|
23
25
|
i18n.use(initReactI18next).init(i18nConfig);
|
|
24
26
|
}
|
|
27
|
+
const initializeI18n = (config) => {
|
|
28
|
+
i18n.use(initReactI18next).init({ ...i18nConfig, ...config });
|
|
29
|
+
};
|
|
25
30
|
|
|
26
|
-
export { Translations };
|
|
31
|
+
export { Translations, initializeI18n };
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,9 @@ import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
|
11
11
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
12
12
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
13
13
|
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
14
|
+
import { InitOptions } from 'i18next';
|
|
14
15
|
export { default as i18n } from 'i18next';
|
|
16
|
+
export { useTranslation } from 'react-i18next';
|
|
15
17
|
|
|
16
18
|
declare const accordionVariants: (props?: ({
|
|
17
19
|
variant?: "default" | null | undefined;
|
|
@@ -273,6 +275,7 @@ declare enum Translations {
|
|
|
273
275
|
EN_US = "en_US",
|
|
274
276
|
ES_ES = "es_ES"
|
|
275
277
|
}
|
|
278
|
+
declare const initializeI18n: (config?: InitOptions) => void;
|
|
276
279
|
|
|
277
280
|
type PaginationButtonProps = {
|
|
278
281
|
className?: string;
|
|
@@ -666,4 +669,4 @@ declare const fonts: {
|
|
|
666
669
|
ibm: string[];
|
|
667
670
|
};
|
|
668
671
|
|
|
669
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type BgColor, Button, type ButtonProps, CadastroFacil, type CadastroFacilProps, type CalloutNotificationProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type CheckboxProps, type Color, type ColorToken, type CustomStyles$1 as CustomStyles, DataTable, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type FillColor, type Fonts, type HeaderProps, type InlineNotificationProps, Layout, type LayoutProps, LogoLecom, LogoLecomBrand, type LogoLecomBrandProps, type LogoLecomProps, ModoTeste, type ModoTesteProps, Notification, type NotificationProps, Pagination, PaginationContent, PaginationEllipsis, PaginationFirst, PaginationIndex, PaginationItem, PaginationLast, PaginationNext, PaginationPrevious, type PaginationProps, Popover, PopoverContent, PopoverTrigger, Rpa, type RpaProps, ScrollArea, ScrollBar, type SideBarProps, Skeleton, Spin, type SpinProps, Switch, TOAST_REMOVE_DELAY, Tag, type TagProps, type TextColor, type ToastNotificationProps, type ToasterToast, Tooltip, TooltipArrow, TooltipContent, type TooltipContentProps, TooltipPortal, TooltipProvider, TooltipTrigger, Translations, TypeMessageNotification, Typography, type TypographyProps, type UsePaginationItem, accordionVariants, buttonVariants, colors, fonts, getPositionClass, notificationVariants, reducer, tagVariants, toast, typographyVariants, useIsMobile, useNotificationToast, usePagination, useSidebar };
|
|
672
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type BgColor, Button, type ButtonProps, CadastroFacil, type CadastroFacilProps, type CalloutNotificationProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type CheckboxProps, type Color, type ColorToken, type CustomStyles$1 as CustomStyles, DataTable, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type FillColor, type Fonts, type HeaderProps, type InlineNotificationProps, Layout, type LayoutProps, LogoLecom, LogoLecomBrand, type LogoLecomBrandProps, type LogoLecomProps, ModoTeste, type ModoTesteProps, Notification, type NotificationProps, Pagination, PaginationContent, PaginationEllipsis, PaginationFirst, PaginationIndex, PaginationItem, PaginationLast, PaginationNext, PaginationPrevious, type PaginationProps, Popover, PopoverContent, PopoverTrigger, Rpa, type RpaProps, ScrollArea, ScrollBar, type SideBarProps, Skeleton, Spin, type SpinProps, Switch, TOAST_REMOVE_DELAY, Tag, type TagProps, type TextColor, type ToastNotificationProps, type ToasterToast, Tooltip, TooltipArrow, TooltipContent, type TooltipContentProps, TooltipPortal, TooltipProvider, TooltipTrigger, Translations, TypeMessageNotification, Typography, type TypographyProps, type UsePaginationItem, accordionVariants, buttonVariants, colors, fonts, getPositionClass, initializeI18n, notificationVariants, reducer, tagVariants, toast, typographyVariants, useIsMobile, useNotificationToast, usePagination, useSidebar };
|
package/dist/index.js
CHANGED
|
@@ -25,7 +25,8 @@ export { Spin } from './components/Spin/Spin.js';
|
|
|
25
25
|
export { useSidebar } from './components/Sidebar/Sidebar.js';
|
|
26
26
|
export { useIsMobile } from './hooks/useIsMobile.js';
|
|
27
27
|
export { usePagination } from './hooks/usePagination.js';
|
|
28
|
-
export { Translations } from './i18n/index.js';
|
|
28
|
+
export { Translations, initializeI18n } from './i18n/index.js';
|
|
29
29
|
export { colors } from './tokens/colors.js';
|
|
30
30
|
export { fonts } from './tokens/fonts.js';
|
|
31
31
|
export { default as i18n } from 'i18next';
|
|
32
|
+
export { useTranslation } from 'react-i18next';
|