lecom-ui 3.9.6 → 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.
@@ -19,9 +19,13 @@ const i18nConfig = {
19
19
  escapeValue: false
20
20
  }
21
21
  };
22
+ console.log("i18n.isInitialized 0");
22
23
  if (!i18n.isInitialized) {
23
- console.log("i18n.isInitialized");
24
+ console.log("i18n.isInitialized 1");
24
25
  i18n.use(initReactI18next).init(i18nConfig);
25
26
  }
27
+ const initializeI18n = (config) => {
28
+ i18n.use(initReactI18next).init({ ...i18nConfig, ...config });
29
+ };
26
30
 
27
- export { Translations };
31
+ export { Translations, initializeI18n };
package/dist/index.d.ts CHANGED
@@ -11,6 +11,7 @@ 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';
15
16
  export { useTranslation } from 'react-i18next';
16
17
 
@@ -274,6 +275,7 @@ declare enum Translations {
274
275
  EN_US = "en_US",
275
276
  ES_ES = "es_ES"
276
277
  }
278
+ declare const initializeI18n: (config?: InitOptions) => void;
277
279
 
278
280
  type PaginationButtonProps = {
279
281
  className?: string;
@@ -667,4 +669,4 @@ declare const fonts: {
667
669
  ibm: string[];
668
670
  };
669
671
 
670
- 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,7 @@ 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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lecom-ui",
3
- "version": "3.9.6",
3
+ "version": "3.9.7",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",