neba 1.6.0 → 1.7.0
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/README.md +32 -1
- package/dist/components/accordion/Accordion.d.ts +1 -1
- package/dist/components/accordion/Accordion.js +1 -1
- package/dist/components/accordion/index.d.ts +2 -2
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/alert/Alert.d.ts +1 -1
- package/dist/components/alert/Alert.js +1 -1
- package/dist/components/alert/index.d.ts +2 -2
- package/dist/components/alert/index.js +1 -1
- package/dist/components/animate-appear/AnimateAppear.d.ts +1 -1
- package/dist/components/animate-appear/AnimateAppear.js +1 -1
- package/dist/components/animate-appear/index.d.ts +2 -2
- package/dist/components/animate-appear/index.js +1 -1
- package/dist/components/animate-blink/AnimateBlink.d.ts +1 -1
- package/dist/components/animate-blink/AnimateBlink.js +1 -1
- package/dist/components/animate-blink/index.d.ts +2 -2
- package/dist/components/animate-blink/index.js +1 -1
- package/dist/components/animate-fade/AnimateFade.d.ts +1 -1
- package/dist/components/animate-fade/AnimateFade.js +1 -1
- package/dist/components/animate-fade/index.d.ts +2 -2
- package/dist/components/animate-fade/index.js +1 -1
- package/dist/components/animate-grow/AnimateGrow.d.ts +1 -1
- package/dist/components/animate-grow/AnimateGrow.js +1 -1
- package/dist/components/animate-grow/index.d.ts +2 -2
- package/dist/components/animate-grow/index.js +1 -1
- package/dist/components/animate-headline/AnimateHeadline.d.ts +1 -1
- package/dist/components/animate-headline/AnimateHeadline.js +1 -1
- package/dist/components/animate-headline/index.d.ts +2 -2
- package/dist/components/animate-headline/index.js +1 -1
- package/dist/components/animate-lighting/AnimateLighting.d.ts +1 -1
- package/dist/components/animate-lighting/AnimateLighting.js +1 -1
- package/dist/components/animate-lighting/index.d.ts +2 -2
- package/dist/components/animate-lighting/index.js +1 -1
- package/dist/components/animate-marquee/AnimateMarquee.d.ts +1 -1
- package/dist/components/animate-marquee/AnimateMarquee.js +1 -1
- package/dist/components/animate-marquee/index.d.ts +2 -2
- package/dist/components/animate-marquee/index.js +1 -1
- package/dist/components/animate-rotate/AnimateRotate.d.ts +1 -1
- package/dist/components/animate-rotate/AnimateRotate.js +1 -1
- package/dist/components/animate-rotate/index.d.ts +2 -2
- package/dist/components/animate-rotate/index.js +1 -1
- package/dist/components/animate-slide/AnimateSlide.d.ts +1 -1
- package/dist/components/animate-slide/AnimateSlide.js +1 -1
- package/dist/components/animate-slide/index.d.ts +2 -2
- package/dist/components/animate-slide/index.js +1 -1
- package/dist/components/animate-typing/AnimateTyping.d.ts +1 -1
- package/dist/components/animate-typing/AnimateTyping.js +1 -1
- package/dist/components/animate-typing/index.d.ts +2 -2
- package/dist/components/animate-typing/index.js +1 -1
- package/dist/components/animate-zoom/AnimateZoom.d.ts +1 -1
- package/dist/components/animate-zoom/AnimateZoom.js +1 -1
- package/dist/components/animate-zoom/index.d.ts +2 -2
- package/dist/components/animate-zoom/index.js +1 -1
- package/dist/components/area-chart/AreaChart.d.ts +3 -3
- package/dist/components/area-chart/AreaChart.js +1 -1
- package/dist/components/area-chart/index.d.ts +2 -2
- package/dist/components/area-chart/index.js +1 -1
- package/dist/components/aspect-ratio/AspectRatio.d.ts +1 -1
- package/dist/components/aspect-ratio/AspectRatio.js +1 -1
- package/dist/components/aspect-ratio/index.d.ts +2 -2
- package/dist/components/aspect-ratio/index.js +1 -1
- package/dist/components/avatar/Avatar.d.ts +1 -1
- package/dist/components/avatar/Avatar.js +1 -1
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/badge/Badge.d.ts +1 -1
- package/dist/components/badge/Badge.js +1 -1
- package/dist/components/badge/index.d.ts +2 -2
- package/dist/components/badge/index.js +1 -1
- package/dist/components/bar-chart/BarChart.d.ts +2 -2
- package/dist/components/bar-chart/BarChart.js +1 -1
- package/dist/components/bar-chart/index.d.ts +2 -2
- package/dist/components/bar-chart/index.js +1 -1
- package/dist/components/blockquote/Blockquote.d.ts +1 -1
- package/dist/components/blockquote/Blockquote.js +1 -1
- package/dist/components/blockquote/index.d.ts +2 -2
- package/dist/components/blockquote/index.js +1 -1
- package/dist/components/bottom-navigation/BottomNavigation.d.ts +3 -3
- package/dist/components/bottom-navigation/BottomNavigation.js +1 -1
- package/dist/components/bottom-navigation/index.d.ts +1 -1
- package/dist/components/bottom-navigation/index.js +1 -1
- package/dist/components/box/Box.d.ts +1 -1
- package/dist/components/box/Box.js +1 -1
- package/dist/components/box/index.d.ts +2 -2
- package/dist/components/box/index.js +1 -1
- package/dist/components/breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/components/breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/breadcrumb/index.d.ts +2 -2
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/button/Button.d.ts +1 -1
- package/dist/components/button/Button.js +1 -1
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/button/index.js +1 -1
- package/dist/components/button-group/ButtonGroup.d.ts +1 -1
- package/dist/components/button-group/ButtonGroup.js +1 -1
- package/dist/components/button-group/index.d.ts +2 -2
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/card/Card.d.ts +1 -1
- package/dist/components/card/Card.js +1 -1
- package/dist/components/card/index.d.ts +2 -2
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/Carousel.d.ts +1 -1
- package/dist/components/carousel/Carousel.js +1 -1
- package/dist/components/carousel/index.d.ts +2 -2
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chat-bubble/ChatBubble.d.ts +1 -1
- package/dist/components/chat-bubble/ChatBubble.js +1 -1
- package/dist/components/chat-bubble/index.d.ts +2 -2
- package/dist/components/chat-bubble/index.js +1 -1
- package/dist/components/checkbox/Checkbox.d.ts +1 -1
- package/dist/components/checkbox/Checkbox.js +1 -1
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/chip/Chip.d.ts +1 -1
- package/dist/components/chip/Chip.js +1 -1
- package/dist/components/chip/index.d.ts +2 -2
- package/dist/components/chip/index.js +1 -1
- package/dist/components/collapsible/Collapsible.d.ts +1 -1
- package/dist/components/collapsible/Collapsible.js +1 -1
- package/dist/components/collapsible/index.d.ts +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/color-picker/ColorPicker.d.ts +2 -2
- package/dist/components/color-picker/ColorPicker.js +1 -1
- package/dist/components/color-picker/index.d.ts +2 -2
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/Combobox.d.ts +1 -1
- package/dist/components/combobox/Combobox.js +1 -1
- package/dist/components/combobox/index.d.ts +2 -2
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/container/Container.d.ts +1 -1
- package/dist/components/container/Container.js +1 -1
- package/dist/components/container/index.d.ts +2 -2
- package/dist/components/container/index.js +1 -1
- package/dist/components/data-table/DataTable.d.ts +1 -1
- package/dist/components/data-table/DataTable.js +1 -1
- package/dist/components/data-table/index.d.ts +2 -2
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/DatePicker.d.ts +3 -3
- package/dist/components/date-picker/DatePicker.js +1 -1
- package/dist/components/date-picker/index.d.ts +2 -2
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/DateRangePicker.d.ts +3 -3
- package/dist/components/date-range-picker/DateRangePicker.js +1 -1
- package/dist/components/date-range-picker/index.d.ts +2 -2
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/DateTimePicker.d.ts +4 -4
- package/dist/components/date-time-picker/DateTimePicker.js +1 -1
- package/dist/components/date-time-picker/index.d.ts +2 -2
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dialog/Dialog.d.ts +1 -1
- package/dist/components/dialog/Dialog.js +1 -1
- package/dist/components/dialog/index.d.ts +2 -2
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/divider/Divider.d.ts +1 -1
- package/dist/components/divider/Divider.js +1 -1
- package/dist/components/divider/index.d.ts +2 -2
- package/dist/components/divider/index.js +1 -1
- package/dist/components/drawer/Drawer.d.ts +1 -1
- package/dist/components/drawer/Drawer.js +1 -1
- package/dist/components/drawer/index.d.ts +2 -2
- package/dist/components/drawer/index.js +1 -1
- package/dist/components/empty/Empty.d.ts +1 -1
- package/dist/components/empty/Empty.js +1 -1
- package/dist/components/empty/index.d.ts +2 -2
- package/dist/components/empty/index.js +1 -1
- package/dist/components/file-picker/FilePicker.d.ts +1 -1
- package/dist/components/file-picker/FilePicker.js +1 -1
- package/dist/components/file-picker/index.d.ts +2 -2
- package/dist/components/file-picker/index.js +1 -1
- package/dist/components/floating-action-button/FloatingActionButton.d.ts +1 -1
- package/dist/components/floating-action-button/FloatingActionButton.js +1 -1
- package/dist/components/floating-action-button/index.d.ts +1 -1
- package/dist/components/floating-action-button/index.js +1 -1
- package/dist/components/floating-bottom-navigation/FloatingBottomNavigation.d.ts +2 -2
- package/dist/components/floating-bottom-navigation/FloatingBottomNavigation.js +1 -1
- package/dist/components/floating-bottom-navigation/index.d.ts +2 -2
- package/dist/components/floating-bottom-navigation/index.js +1 -1
- package/dist/components/grid/Grid.d.ts +1 -1
- package/dist/components/grid/Grid.js +1 -1
- package/dist/components/grid/index.d.ts +2 -2
- package/dist/components/grid/index.js +1 -1
- package/dist/components/grid-container/GridContainer.d.ts +1 -1
- package/dist/components/grid-container/GridContainer.js +1 -1
- package/dist/components/grid-container/index.d.ts +2 -2
- package/dist/components/grid-container/index.js +1 -1
- package/dist/components/heatmap-chart/HeatmapChart.d.ts +3 -3
- package/dist/components/heatmap-chart/HeatmapChart.js +1 -1
- package/dist/components/heatmap-chart/index.d.ts +2 -2
- package/dist/components/heatmap-chart/index.js +1 -1
- package/dist/components/highlight/Highlight.d.ts +2 -2
- package/dist/components/highlight/Highlight.js +1 -1
- package/dist/components/highlight/index.d.ts +2 -2
- package/dist/components/highlight/index.js +1 -1
- package/dist/components/icon/Icon.d.ts +1 -1
- package/dist/components/icon/Icon.js +1 -1
- package/dist/components/icon/index.d.ts +2 -2
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon-button/IconButton.d.ts +1 -1
- package/dist/components/icon-button/IconButton.js +1 -1
- package/dist/components/icon-button/index.d.ts +2 -2
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/line-chart/LineChart.d.ts +3 -3
- package/dist/components/line-chart/LineChart.js +1 -1
- package/dist/components/line-chart/index.d.ts +2 -2
- package/dist/components/line-chart/index.js +1 -1
- package/dist/components/list/List.d.ts +1 -1
- package/dist/components/list/List.js +1 -1
- package/dist/components/list/index.d.ts +2 -2
- package/dist/components/list/index.js +1 -1
- package/dist/components/menu/Menu.d.ts +1 -1
- package/dist/components/menu/Menu.js +1 -1
- package/dist/components/menu/index.d.ts +2 -2
- package/dist/components/menu/index.js +1 -1
- package/dist/components/mockup/Mockup.d.ts +3 -3
- package/dist/components/mockup/Mockup.js +1 -1
- package/dist/components/mockup/index.d.ts +2 -2
- package/dist/components/mockup/index.js +1 -1
- package/dist/components/number-field/NumberField.d.ts +1 -1
- package/dist/components/number-field/NumberField.js +1 -1
- package/dist/components/number-field/index.d.ts +2 -2
- package/dist/components/number-field/index.js +1 -1
- package/dist/components/otp-field/OtpField.d.ts +1 -1
- package/dist/components/otp-field/OtpField.js +1 -1
- package/dist/components/otp-field/index.d.ts +2 -2
- package/dist/components/otp-field/index.js +1 -1
- package/dist/components/overlay/Overlay.d.ts +1 -1
- package/dist/components/overlay/Overlay.js +1 -1
- package/dist/components/overlay/index.d.ts +2 -2
- package/dist/components/overlay/index.js +1 -1
- package/dist/components/pagination/Pagination.d.ts +1 -1
- package/dist/components/pagination/Pagination.js +1 -1
- package/dist/components/pagination/index.d.ts +2 -2
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/panes/Panes.d.ts +1 -1
- package/dist/components/panes/Panes.js +1 -1
- package/dist/components/panes/index.d.ts +2 -2
- package/dist/components/panes/index.js +1 -1
- package/dist/components/pie-chart/PieChart.d.ts +2 -2
- package/dist/components/pie-chart/PieChart.js +1 -1
- package/dist/components/pie-chart/index.d.ts +2 -2
- package/dist/components/pie-chart/index.js +1 -1
- package/dist/components/pill/Pill.d.ts +1 -1
- package/dist/components/pill/Pill.js +1 -1
- package/dist/components/pill/index.d.ts +2 -2
- package/dist/components/pill/index.js +1 -1
- package/dist/components/popover/Popover.d.ts +1 -1
- package/dist/components/popover/Popover.js +1 -1
- package/dist/components/popover/index.d.ts +2 -2
- package/dist/components/popover/index.js +1 -1
- package/dist/components/progress-box/ProgressBox.d.ts +2 -2
- package/dist/components/progress-box/ProgressBox.js +1 -1
- package/dist/components/progress-box/index.d.ts +2 -2
- package/dist/components/progress-box/index.js +1 -1
- package/dist/components/progress-circular/ProgressCircular.d.ts +2 -2
- package/dist/components/progress-circular/ProgressCircular.js +1 -1
- package/dist/components/progress-circular/index.d.ts +2 -2
- package/dist/components/progress-circular/index.js +1 -1
- package/dist/components/progress-linear/ProgressLinear.d.ts +2 -2
- package/dist/components/progress-linear/ProgressLinear.js +1 -1
- package/dist/components/progress-linear/index.d.ts +2 -2
- package/dist/components/progress-linear/index.js +1 -1
- package/dist/components/radio-group/RadioGroup.d.ts +1 -1
- package/dist/components/radio-group/RadioGroup.js +1 -1
- package/dist/components/radio-group/index.d.ts +2 -2
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/rating/Rating.d.ts +1 -1
- package/dist/components/rating/Rating.js +1 -1
- package/dist/components/rating/index.d.ts +1 -1
- package/dist/components/rating/index.js +1 -1
- package/dist/components/scatter-chart/ScatterChart.d.ts +2 -2
- package/dist/components/scatter-chart/ScatterChart.js +1 -1
- package/dist/components/scatter-chart/index.d.ts +2 -2
- package/dist/components/scatter-chart/index.js +1 -1
- package/dist/components/scroll-zone/ScrollZone.d.ts +1 -1
- package/dist/components/scroll-zone/ScrollZone.js +1 -1
- package/dist/components/scroll-zone/index.d.ts +2 -2
- package/dist/components/scroll-zone/index.js +1 -1
- package/dist/components/segmented-button/SegmentedButton.d.ts +1 -1
- package/dist/components/segmented-button/SegmentedButton.js +1 -1
- package/dist/components/segmented-button/index.d.ts +2 -2
- package/dist/components/segmented-button/index.js +1 -1
- package/dist/components/select/Select.d.ts +1 -1
- package/dist/components/select/Select.js +1 -1
- package/dist/components/select/index.d.ts +2 -2
- package/dist/components/select/index.js +1 -1
- package/dist/components/shortcut/Shortcut.d.ts +1 -1
- package/dist/components/shortcut/Shortcut.js +1 -1
- package/dist/components/shortcut/index.d.ts +2 -2
- package/dist/components/shortcut/index.js +1 -1
- package/dist/components/skeleton/Skeleton.d.ts +1 -1
- package/dist/components/skeleton/Skeleton.js +1 -1
- package/dist/components/skeleton/index.d.ts +2 -2
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/slider/Slider.d.ts +1 -1
- package/dist/components/slider/Slider.js +1 -1
- package/dist/components/slider/index.d.ts +2 -2
- package/dist/components/slider/index.js +1 -1
- package/dist/components/sparkline/Sparkline.d.ts +1 -1
- package/dist/components/sparkline/Sparkline.js +1 -1
- package/dist/components/sparkline/index.d.ts +2 -2
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/spoiler/Spoiler.d.ts +1 -1
- package/dist/components/spoiler/Spoiler.js +1 -1
- package/dist/components/spoiler/index.d.ts +2 -2
- package/dist/components/spoiler/index.js +1 -1
- package/dist/components/statistic/Statistic.d.ts +2 -2
- package/dist/components/statistic/Statistic.js +1 -1
- package/dist/components/statistic/index.d.ts +2 -2
- package/dist/components/statistic/index.js +1 -1
- package/dist/components/switch/Switch.d.ts +1 -1
- package/dist/components/switch/Switch.js +1 -1
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/switch/index.js +1 -1
- package/dist/components/table/Table.d.ts +2 -2
- package/dist/components/table/Table.js +1 -1
- package/dist/components/table/index.d.ts +2 -2
- package/dist/components/table/index.js +1 -1
- package/dist/components/tabs/Tabs.d.ts +1 -1
- package/dist/components/tabs/Tabs.js +1 -1
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/text-field/TextField.d.ts +1 -1
- package/dist/components/text-field/TextField.js +1 -1
- package/dist/components/text-field/index.d.ts +2 -2
- package/dist/components/text-field/index.js +1 -1
- package/dist/components/text-link/TextLink.d.ts +1 -1
- package/dist/components/text-link/TextLink.js +1 -1
- package/dist/components/text-link/index.d.ts +2 -2
- package/dist/components/text-link/index.js +1 -1
- package/dist/components/time-picker/TimePicker.d.ts +2 -2
- package/dist/components/time-picker/TimePicker.js +1 -1
- package/dist/components/time-picker/index.d.ts +2 -2
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/timeline/Timeline.d.ts +1 -1
- package/dist/components/timeline/Timeline.js +1 -1
- package/dist/components/timeline/index.d.ts +2 -2
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/timeline-chart/TimelineChart.d.ts +2 -2
- package/dist/components/timeline-chart/TimelineChart.js +1 -1
- package/dist/components/timeline-chart/index.d.ts +2 -2
- package/dist/components/timeline-chart/index.js +1 -1
- package/dist/components/toast/Toast.d.ts +1 -1
- package/dist/components/toast/Toast.js +1 -1
- package/dist/components/toast/index.d.ts +2 -2
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toolbar/Toolbar.d.ts +1 -1
- package/dist/components/toolbar/Toolbar.js +1 -1
- package/dist/components/toolbar/index.d.ts +2 -2
- package/dist/components/toolbar/index.js +1 -1
- package/dist/components/tooltip/Tooltip.d.ts +1 -1
- package/dist/components/tooltip/Tooltip.js +1 -1
- package/dist/components/tooltip/index.d.ts +2 -2
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tree-view/TreeView.d.ts +1 -1
- package/dist/components/tree-view/TreeView.js +1 -1
- package/dist/components/tree-view/index.d.ts +2 -2
- package/dist/components/tree-view/index.js +1 -1
- package/dist/components/typography/Typography.d.ts +1 -1
- package/dist/components/typography/Typography.js +1 -1
- package/dist/components/typography/index.d.ts +2 -2
- package/dist/components/typography/index.js +1 -1
- package/dist/components/window-pane/WindowPane.d.ts +3 -3
- package/dist/components/window-pane/WindowPane.js +1 -1
- package/dist/components/window-pane/index.d.ts +2 -2
- package/dist/components/window-pane/index.js +1 -1
- package/dist/index.d.ts +92 -92
- package/dist/index.js +1 -1
- package/dist/internal/animate.d.ts +1 -1
- package/dist/internal/bottom-navigation.d.ts +1 -1
- package/dist/internal/bottom-navigation.js +1 -1
- package/dist/internal/button-group.d.ts +1 -1
- package/dist/internal/button-group.js +1 -1
- package/dist/internal/calendar.d.ts +2 -2
- package/dist/internal/calendar.js +1 -1
- package/dist/internal/chart-frame.d.ts +3 -3
- package/dist/internal/chart-frame.js +1 -1
- package/dist/internal/chart-line.d.ts +2 -2
- package/dist/internal/chart-line.js +1 -1
- package/dist/internal/chart.d.ts +1 -1
- package/dist/internal/chart.js +1 -1
- package/dist/internal/data-table.d.ts +1 -1
- package/dist/internal/date.d.ts +1 -1
- package/dist/internal/date.js +1 -1
- package/dist/internal/grid.d.ts +1 -1
- package/dist/internal/i18n.d.ts +344 -231
- package/dist/internal/i18n.js +1 -1
- package/dist/internal/icons.d.ts +18 -2
- package/dist/internal/icons.js +1 -1
- package/dist/internal/menu.d.ts +1 -1
- package/dist/internal/menu.js +1 -1
- package/dist/internal/mockup.d.ts +1 -1
- package/dist/internal/picker.d.ts +2 -2
- package/dist/internal/picker.js +1 -1
- package/dist/internal/progress.d.ts +1 -1
- package/dist/internal/styles.d.ts +1 -1
- package/dist/internal/window.d.ts +1 -1
- package/dist/internal/window.js +1 -1
- package/dist/locales/ar.d.ts +14 -0
- package/dist/locales/ar.js +1 -0
- package/dist/locales/de.d.ts +14 -0
- package/dist/locales/de.js +1 -0
- package/dist/locales/es.d.ts +14 -0
- package/dist/locales/es.js +1 -0
- package/dist/locales/fr.d.ts +14 -0
- package/dist/locales/fr.js +1 -0
- package/dist/locales/hi.d.ts +14 -0
- package/dist/locales/hi.js +1 -0
- package/dist/locales/id.d.ts +14 -0
- package/dist/locales/id.js +1 -0
- package/dist/locales/index.d.ts +45 -0
- package/dist/locales/index.js +1 -0
- package/dist/locales/it.d.ts +14 -0
- package/dist/locales/it.js +1 -0
- package/dist/locales/ja.d.ts +14 -0
- package/dist/locales/ja.js +1 -0
- package/dist/locales/ko.d.ts +14 -0
- package/dist/locales/ko.js +1 -0
- package/dist/locales/nl.d.ts +14 -0
- package/dist/locales/nl.js +1 -0
- package/dist/locales/pl.d.ts +14 -0
- package/dist/locales/pl.js +1 -0
- package/dist/locales/pt.d.ts +14 -0
- package/dist/locales/pt.js +1 -0
- package/dist/locales/ru.d.ts +14 -0
- package/dist/locales/ru.js +1 -0
- package/dist/locales/th.d.ts +14 -0
- package/dist/locales/th.js +1 -0
- package/dist/locales/tr.d.ts +14 -0
- package/dist/locales/tr.js +1 -0
- package/dist/locales/vi.d.ts +14 -0
- package/dist/locales/vi.js +1 -0
- package/dist/locales/zh-hans.d.ts +17 -0
- package/dist/locales/zh-hans.js +1 -0
- package/dist/locales/zh-hant.d.ts +17 -0
- package/dist/locales/zh-hant.js +1 -0
- package/package.json +33 -3
package/dist/internal/i18n.d.ts
CHANGED
|
@@ -14,6 +14,16 @@
|
|
|
14
14
|
* a picker's "Today", a Pagination's "Next page" — should get it from the same
|
|
15
15
|
* place rather than starting a second table beside this one.
|
|
16
16
|
*
|
|
17
|
+
* **One exported table per namespace, and never one table of all of them.** A
|
|
18
|
+
* bundler drops an unused `export const`, and it cannot drop a key out of an
|
|
19
|
+
* object literal — so a Chip that needs the word "Remove" and reaches it
|
|
20
|
+
* through a single table holding every namespace ships the ColorPicker's seven
|
|
21
|
+
* colour words and the Table's seven column words in eighteen languages too.
|
|
22
|
+
* That was thirty-eight kilobytes of translations behind a two-kilobyte
|
|
23
|
+
* component. Split per namespace, the Chip carries the four `action` strings
|
|
24
|
+
* and nothing else. Adding a namespace is therefore a new `export const`
|
|
25
|
+
* beside the others, not a new key inside one of them.
|
|
26
|
+
*
|
|
17
27
|
* What is *not* in here is anything `Intl` already knows. Month names, weekday
|
|
18
28
|
* names, AM/PM and number formats come from the platform, which speaks more
|
|
19
29
|
* languages than this file ever will. This is only for the words the platform
|
|
@@ -24,255 +34,288 @@
|
|
|
24
34
|
* you a translation for free, and the prop gets you one for anything else.
|
|
25
35
|
*/
|
|
26
36
|
/**
|
|
27
|
-
* One namespace
|
|
37
|
+
* One namespace's strings, in every language that has them.
|
|
38
|
+
*
|
|
39
|
+
* `''` is English and is complete by construction — every other tag fills in as
|
|
40
|
+
* much as it has and is merged over English when it is read, so a half-finished
|
|
41
|
+
* translation is a half-finished translation rather than a page of blanks.
|
|
42
|
+
*/
|
|
43
|
+
export interface MessageTable<T> {
|
|
44
|
+
'': T;
|
|
45
|
+
[tag: string]: Partial<T>;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* The words more than one component needs.
|
|
28
49
|
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
50
|
+
* The one namespace here that is not a component, and it exists because five
|
|
51
|
+
* of them draw the same × and would otherwise each carry their own "Close" in
|
|
52
|
+
* eighteen languages. A reader meeting that button on a Dialog, a Drawer, a
|
|
53
|
+
* Popover and a Toast should hear the same word every time, which is easier to
|
|
54
|
+
* guarantee when there is only one of it.
|
|
33
55
|
*/
|
|
34
|
-
export interface
|
|
56
|
+
export interface ActionMessages {
|
|
57
|
+
/** The × on a Dialog, a Drawer, a Popover and a Toast. */
|
|
58
|
+
close: string;
|
|
35
59
|
/**
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* The one namespace here that is not a component, and it exists because five
|
|
39
|
-
* of them draw the same × and would otherwise each carry their own "Close" in
|
|
40
|
-
* eighteen languages. A reader meeting that button on a Dialog, a Drawer, a
|
|
41
|
-
* Popover and a Toast should hear the same word every time, which is easier to
|
|
42
|
-
* guarantee when there is only one of it.
|
|
60
|
+
* And the one on an Alert, which is a different act: a dialog is closed
|
|
61
|
+
* because it has been answered, an alert is waved away.
|
|
43
62
|
*/
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
/** The × on a Chip. */
|
|
55
|
-
remove: string;
|
|
56
|
-
};
|
|
57
|
-
/** TextLink. */
|
|
58
|
-
link: {
|
|
59
|
-
/**
|
|
60
|
-
* What is read out after a link that opens a new tab, and never drawn. A
|
|
61
|
-
* window changing under the reader is the one thing about a link that is
|
|
62
|
-
* invisible until it has already happened.
|
|
63
|
-
*/
|
|
64
|
-
newTab: string;
|
|
65
|
-
};
|
|
66
|
-
/** Spoiler. */
|
|
67
|
-
spoiler: {
|
|
68
|
-
/** The button that uncovers the content. */
|
|
69
|
-
reveal: string;
|
|
70
|
-
/** And the one that covers it again, when the Spoiler is reversible. */
|
|
71
|
-
hide: string;
|
|
72
|
-
/** The line above the button, saying why the content is covered. */
|
|
73
|
-
notice: string;
|
|
74
|
-
};
|
|
75
|
-
/** ChatBubble. */
|
|
76
|
-
chat: {
|
|
77
|
-
/** The four steps a message goes through, as the mark under it. */
|
|
78
|
-
sending: string;
|
|
79
|
-
sent: string;
|
|
80
|
-
delivered: string;
|
|
81
|
-
read: string;
|
|
82
|
-
/** And the fifth, which is not a step: it did not go. */
|
|
83
|
-
failed: string;
|
|
84
|
-
/** What the three dots mean. */
|
|
85
|
-
typing: string;
|
|
86
|
-
};
|
|
87
|
-
/** Empty. */
|
|
88
|
-
empty: {
|
|
89
|
-
/**
|
|
90
|
-
* The headline over a region with nothing in it.
|
|
91
|
-
*
|
|
92
|
-
* The one string in here that is *drawn* at full size rather than read out
|
|
93
|
-
* or written on a button, and it is here for the same reason the rest are:
|
|
94
|
-
* an empty state has nothing to take its words from. What is missing is the
|
|
95
|
-
* caller's — a search, an inbox, a folder — so the default says only that
|
|
96
|
-
* there is nothing, and anything more specific is the `title` prop.
|
|
97
|
-
*/
|
|
98
|
-
title: string;
|
|
99
|
-
};
|
|
100
|
-
/**
|
|
101
|
-
* DataTable.
|
|
102
|
-
*
|
|
103
|
-
* A DataTable is the one component in the library that draws chrome of its
|
|
104
|
-
* own — a search field, a header tick that chooses everything at once, a
|
|
105
|
-
* footer counting what is on screen — so it is also the one that has the most
|
|
106
|
-
* to say without being handed the words.
|
|
107
|
-
*/
|
|
108
|
-
table: {
|
|
109
|
-
/** Placeholder and accessible name of the search field. */
|
|
110
|
-
search: string;
|
|
111
|
-
/** The tick in the header row, which chooses every row at once. */
|
|
112
|
-
selectAll: string;
|
|
113
|
-
/** The tick on a row. */
|
|
114
|
-
selectRow: string;
|
|
115
|
-
/** Beside the footer's page-size Select. */
|
|
116
|
-
rowsPerPage: string;
|
|
117
|
-
/**
|
|
118
|
-
* Which rows are on screen, out of how many there are. `{start}`, `{end}`
|
|
119
|
-
* and `{total}` are replaced with the numbers, already formatted for the
|
|
120
|
-
* locale — a template rather than three fragments, because the order the
|
|
121
|
-
* three appear in is exactly what differs between languages.
|
|
122
|
-
*/
|
|
123
|
-
range: string;
|
|
124
|
-
/** How many rows are chosen. `{count}` is replaced the same way. */
|
|
125
|
-
selected: string;
|
|
126
|
-
/**
|
|
127
|
-
* What a table with no rows in it says. Shared with Table, which has the
|
|
128
|
-
* same nothing to report and no chrome of its own to say it with.
|
|
129
|
-
*/
|
|
130
|
-
empty: string;
|
|
131
|
-
};
|
|
63
|
+
dismiss: string;
|
|
64
|
+
/** The × that empties a Combobox. */
|
|
65
|
+
clear: string;
|
|
66
|
+
/** The × on a Chip. */
|
|
67
|
+
remove: string;
|
|
68
|
+
}
|
|
69
|
+
/** The `action` namespace, as Alert, Chip, Combobox, Dialog, Drawer, Popover and Toast read it. */
|
|
70
|
+
export declare const actionMessages: MessageTable<ActionMessages>;
|
|
71
|
+
/** TextLink. */
|
|
72
|
+
export interface LinkMessages {
|
|
132
73
|
/**
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
* of colour, two rails, a grid of swatches. A control a sighted reader
|
|
137
|
-
* understands from a glance at a gradient is a control that says nothing at
|
|
138
|
-
* all without them, which makes this the one namespace here where the strings
|
|
139
|
-
* are the entire accessible interface rather than a convenience on top of it.
|
|
74
|
+
* What is read out after a link that opens a new tab, and never drawn. A
|
|
75
|
+
* window changing under the reader is the one thing about a link that is
|
|
76
|
+
* invisible until it has already happened.
|
|
140
77
|
*/
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
78
|
+
newTab: string;
|
|
79
|
+
}
|
|
80
|
+
/** The `link` namespace, as TextLink read it. */
|
|
81
|
+
export declare const linkMessages: MessageTable<LinkMessages>;
|
|
82
|
+
/** Spoiler. */
|
|
83
|
+
export interface SpoilerMessages {
|
|
84
|
+
/** The button that uncovers the content. */
|
|
85
|
+
reveal: string;
|
|
86
|
+
/** And the one that covers it again, when the Spoiler is reversible. */
|
|
87
|
+
hide: string;
|
|
88
|
+
/** The line above the button, saying why the content is covered. */
|
|
89
|
+
notice: string;
|
|
90
|
+
}
|
|
91
|
+
/** The `spoiler` namespace, as Spoiler read it. */
|
|
92
|
+
export declare const spoilerMessages: MessageTable<SpoilerMessages>;
|
|
93
|
+
/** ChatBubble. */
|
|
94
|
+
export interface ChatMessages {
|
|
95
|
+
/** The four steps a message goes through, as the mark under it. */
|
|
96
|
+
sending: string;
|
|
97
|
+
sent: string;
|
|
98
|
+
delivered: string;
|
|
99
|
+
read: string;
|
|
100
|
+
/** And the fifth, which is not a step: it did not go. */
|
|
101
|
+
failed: string;
|
|
102
|
+
/** What the three dots mean. */
|
|
103
|
+
typing: string;
|
|
104
|
+
}
|
|
105
|
+
/** The `chat` namespace, as ChatBubble read it. */
|
|
106
|
+
export declare const chatMessages: MessageTable<ChatMessages>;
|
|
107
|
+
/** Empty. */
|
|
108
|
+
export interface EmptyMessages {
|
|
157
109
|
/**
|
|
158
|
-
*
|
|
110
|
+
* The headline over a region with nothing in it.
|
|
159
111
|
*
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
*
|
|
112
|
+
* The one string in here that is *drawn* at full size rather than read out
|
|
113
|
+
* or written on a button, and it is here for the same reason the rest are:
|
|
114
|
+
* an empty state has nothing to take its words from. What is missing is the
|
|
115
|
+
* caller's — a search, an inbox, a folder — so the default says only that
|
|
116
|
+
* there is nothing, and anything more specific is the `title` prop.
|
|
163
117
|
*/
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
118
|
+
title: string;
|
|
119
|
+
}
|
|
120
|
+
/** The `empty` namespace, as Empty, DataTable, HeatmapChart and PieChart read it. */
|
|
121
|
+
export declare const emptyMessages: MessageTable<EmptyMessages>;
|
|
122
|
+
/**
|
|
123
|
+
* DataTable.
|
|
124
|
+
*
|
|
125
|
+
* A DataTable is the one component in the library that draws chrome of its
|
|
126
|
+
* own — a search field, a header tick that chooses everything at once, a
|
|
127
|
+
* footer counting what is on screen — so it is also the one that has the most
|
|
128
|
+
* to say without being handed the words.
|
|
129
|
+
*/
|
|
130
|
+
export interface TableMessages {
|
|
131
|
+
/** Placeholder and accessible name of the search field. */
|
|
132
|
+
search: string;
|
|
133
|
+
/** The tick in the header row, which chooses every row at once. */
|
|
134
|
+
selectAll: string;
|
|
135
|
+
/** The tick on a row. */
|
|
136
|
+
selectRow: string;
|
|
137
|
+
/** Beside the footer's page-size Select. */
|
|
138
|
+
rowsPerPage: string;
|
|
181
139
|
/**
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
*
|
|
140
|
+
* Which rows are on screen, out of how many there are. `{start}`, `{end}`
|
|
141
|
+
* and `{total}` are replaced with the numbers, already formatted for the
|
|
142
|
+
* locale — a template rather than three fragments, because the order the
|
|
143
|
+
* three appear in is exactly what differs between languages.
|
|
186
144
|
*/
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
/** And the one that goes down. */
|
|
191
|
-
decrease: string;
|
|
192
|
-
};
|
|
145
|
+
range: string;
|
|
146
|
+
/** How many rows are chosen. `{count}` is replaced the same way. */
|
|
147
|
+
selected: string;
|
|
193
148
|
/**
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
* Every string here names a control that is a number or an arrow, so without
|
|
197
|
-
* them the row reads out as a list of digits with no idea what they page
|
|
198
|
-
* through.
|
|
149
|
+
* What a table with no rows in it says. Shared with Table, which has the
|
|
150
|
+
* same nothing to report and no chrome of its own to say it with.
|
|
199
151
|
*/
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
152
|
+
empty: string;
|
|
153
|
+
}
|
|
154
|
+
/** The `table` namespace, as Table and DataTable read it. */
|
|
155
|
+
export declare const tableMessages: MessageTable<TableMessages>;
|
|
156
|
+
/**
|
|
157
|
+
* ColorPicker.
|
|
158
|
+
*
|
|
159
|
+
* All but one of these are names for something with no text on it: a square
|
|
160
|
+
* of colour, two rails, a grid of swatches. A control a sighted reader
|
|
161
|
+
* understands from a glance at a gradient is a control that says nothing at
|
|
162
|
+
* all without them, which makes this the one namespace here where the strings
|
|
163
|
+
* are the entire accessible interface rather than a convenience on top of it.
|
|
164
|
+
*/
|
|
165
|
+
export interface ColorMessages {
|
|
166
|
+
/** The saturation/brightness square. */
|
|
167
|
+
area: string;
|
|
168
|
+
/** The rail beside it. */
|
|
169
|
+
hue: string;
|
|
170
|
+
/** The rail below that, when `alpha` is on. */
|
|
171
|
+
alpha: string;
|
|
172
|
+
/** The field the colour can be typed into. */
|
|
173
|
+
value: string;
|
|
174
|
+
/** The grid of ready-made colours. */
|
|
175
|
+
swatches: string;
|
|
176
|
+
/** The × that empties the control. */
|
|
177
|
+
clear: string;
|
|
178
|
+
/** What the trigger reads before anything has been chosen. */
|
|
179
|
+
empty: string;
|
|
180
|
+
}
|
|
181
|
+
/** The `color` namespace, as ColorPicker read it. */
|
|
182
|
+
export declare const colorMessages: MessageTable<ColorMessages>;
|
|
183
|
+
/**
|
|
184
|
+
* Rating.
|
|
185
|
+
*
|
|
186
|
+
* A row of stars is the same case the ColorPicker's rails are: the whole
|
|
187
|
+
* control is a picture, and without these it says nothing at all to a reader
|
|
188
|
+
* who is not looking at it.
|
|
189
|
+
*/
|
|
190
|
+
export interface RatingMessages {
|
|
191
|
+
/** Names the group, when the caller has not named it themselves. */
|
|
192
|
+
label: string;
|
|
226
193
|
/**
|
|
227
|
-
*
|
|
194
|
+
* What one star — and the whole control, once it is read only — is called.
|
|
195
|
+
* `{value}` and `{max}` are replaced with the numbers, already formatted
|
|
196
|
+
* for the locale.
|
|
228
197
|
*
|
|
229
|
-
*
|
|
230
|
-
*
|
|
231
|
-
*
|
|
232
|
-
*
|
|
198
|
+
* A sentence with both numbers in it rather than "3 stars", because a count
|
|
199
|
+
* of stars is a plural in most languages and a fraction in none of them:
|
|
200
|
+
* "3 out of 5" is one string per locale, and "3 stars" is one per locale
|
|
201
|
+
* per plural form.
|
|
233
202
|
*/
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
203
|
+
value: string;
|
|
204
|
+
/** And what it is called before anything has been chosen. */
|
|
205
|
+
empty: string;
|
|
206
|
+
}
|
|
207
|
+
/** The `rating` namespace, as Rating read it. */
|
|
208
|
+
export declare const ratingMessages: MessageTable<RatingMessages>;
|
|
209
|
+
/**
|
|
210
|
+
* NumberField.
|
|
211
|
+
*
|
|
212
|
+
* Two buttons with an arrow on each and nothing else, which is the same case
|
|
213
|
+
* the ColorPicker's rails are.
|
|
214
|
+
*/
|
|
215
|
+
export interface NumberMessages {
|
|
216
|
+
/** The stepper that goes up. */
|
|
217
|
+
increase: string;
|
|
218
|
+
/** And the one that goes down. */
|
|
219
|
+
decrease: string;
|
|
220
|
+
}
|
|
221
|
+
/** The `number` namespace, as NumberField read it. */
|
|
222
|
+
export declare const numberMessages: MessageTable<NumberMessages>;
|
|
223
|
+
/**
|
|
224
|
+
* Pagination.
|
|
225
|
+
*
|
|
226
|
+
* Every string here names a control that is a number or an arrow, so without
|
|
227
|
+
* them the row reads out as a list of digits with no idea what they page
|
|
228
|
+
* through.
|
|
229
|
+
*/
|
|
230
|
+
export interface PaginationMessages {
|
|
231
|
+
/** Names the `<nav>` landmark. */
|
|
232
|
+
label: string;
|
|
233
|
+
/** One page button. `{page}` is replaced with the number. */
|
|
234
|
+
page: string;
|
|
257
235
|
/**
|
|
258
|
-
*
|
|
259
|
-
*
|
|
260
|
-
*
|
|
261
|
-
*
|
|
262
|
-
* other component's close button already reads — a reader meeting it on a
|
|
263
|
-
* Dialog and on a window should hear the same word.
|
|
236
|
+
* Where the reader is, read out rather than drawn. `{page}` and `{total}`
|
|
237
|
+
* are both replaced — one sentence rather than two fragments, because a
|
|
238
|
+
* count of pages and the page you are on go in opposite orders depending on
|
|
239
|
+
* the language.
|
|
264
240
|
*/
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
241
|
+
status: string;
|
|
242
|
+
previous: string;
|
|
243
|
+
next: string;
|
|
244
|
+
first: string;
|
|
245
|
+
last: string;
|
|
246
|
+
}
|
|
247
|
+
/** The `pagination` namespace, as Pagination read it. */
|
|
248
|
+
export declare const paginationMessages: MessageTable<PaginationMessages>;
|
|
249
|
+
/** Carousel. */
|
|
250
|
+
export interface CarouselMessages {
|
|
251
|
+
/** Names the region, beside the `carousel` roledescription. */
|
|
252
|
+
label: string;
|
|
253
|
+
/** One slide. `{index}` and `{total}` are replaced with the numbers. */
|
|
254
|
+
slide: string;
|
|
255
|
+
previous: string;
|
|
256
|
+
next: string;
|
|
257
|
+
}
|
|
258
|
+
/** The `carousel` namespace, as Carousel read it. */
|
|
259
|
+
export declare const carouselMessages: MessageTable<CarouselMessages>;
|
|
260
|
+
/**
|
|
261
|
+
* ScrollZone.
|
|
262
|
+
*
|
|
263
|
+
* Both buttons are an arrow with nothing else on them, and which way the
|
|
264
|
+
* strip runs is a prop — so the words are logical rather than physical. A
|
|
265
|
+
* vertical zone's "back" is up, and under RTL a horizontal one's is to the
|
|
266
|
+
* right.
|
|
267
|
+
*/
|
|
268
|
+
export interface ScrollMessages {
|
|
269
|
+
previous: string;
|
|
270
|
+
next: string;
|
|
271
|
+
}
|
|
272
|
+
/** The `scroll` namespace, as ScrollZone read it. */
|
|
273
|
+
export declare const scrollMessages: MessageTable<ScrollMessages>;
|
|
274
|
+
/** Breadcrumb. */
|
|
275
|
+
export interface BreadcrumbMessages {
|
|
276
|
+
/** Names the `<nav>` landmark. */
|
|
277
|
+
label: string;
|
|
278
|
+
/** The `…` that puts the folded middle of the trail back. */
|
|
279
|
+
expand: string;
|
|
280
|
+
}
|
|
281
|
+
/** The `breadcrumb` namespace, as Breadcrumb read it. */
|
|
282
|
+
export declare const breadcrumbMessages: MessageTable<BreadcrumbMessages>;
|
|
283
|
+
/** Combobox. */
|
|
284
|
+
export interface ComboboxMessages {
|
|
285
|
+
/** The line where the list would be, when nothing matched what was typed. */
|
|
286
|
+
empty: string;
|
|
287
|
+
/** The × on one chosen entry. `{label}` is replaced with its own label. */
|
|
288
|
+
remove: string;
|
|
289
|
+
}
|
|
290
|
+
/** The `combobox` namespace, as Combobox read it. */
|
|
291
|
+
export declare const comboboxMessages: MessageTable<ComboboxMessages>;
|
|
292
|
+
/** Overlay. */
|
|
293
|
+
export interface OverlayMessages {
|
|
294
|
+
/** Names the sheet that covers whatever it was wrapped around. */
|
|
295
|
+
label: string;
|
|
296
|
+
}
|
|
297
|
+
/** The `overlay` namespace, as Overlay read it. */
|
|
298
|
+
export declare const overlayMessages: MessageTable<OverlayMessages>;
|
|
299
|
+
/**
|
|
300
|
+
* WindowPane.
|
|
301
|
+
*
|
|
302
|
+
* The three buttons on a title bar that are drawings of what they do, and the
|
|
303
|
+
* handle that has no drawing at all. The × is `action.close`, which every
|
|
304
|
+
* other component's close button already reads — a reader meeting it on a
|
|
305
|
+
* Dialog and on a window should hear the same word.
|
|
306
|
+
*/
|
|
307
|
+
export interface WindowMessages {
|
|
308
|
+
minimize: string;
|
|
309
|
+
maximize: string;
|
|
310
|
+
/** What the maximize button becomes once the window is maximized. */
|
|
311
|
+
restore: string;
|
|
312
|
+
/** Names the corner a pointer drags to resize. */
|
|
313
|
+
resize: string;
|
|
273
314
|
}
|
|
315
|
+
/** The `window` namespace, as WindowPane read it. */
|
|
316
|
+
export declare const windowMessages: MessageTable<WindowMessages>;
|
|
274
317
|
/**
|
|
275
|
-
*
|
|
318
|
+
* One namespace's strings for a locale, merged over English.
|
|
276
319
|
*
|
|
277
320
|
* `undefined` is English rather than the runtime's own locale, and that is
|
|
278
321
|
* deliberate: `navigator.language` differs between the server that renders the
|
|
@@ -281,9 +324,9 @@ export interface NebaMessages {
|
|
|
281
324
|
* at. A component that should follow the reader is told which language to
|
|
282
325
|
* follow.
|
|
283
326
|
*/
|
|
284
|
-
export declare function resolveMessages(locale?: string):
|
|
327
|
+
export declare function resolveMessages<T extends object>(table: MessageTable<T>, locale?: string): T;
|
|
285
328
|
/** The same, as a hook, for the components that read it during a render. */
|
|
286
|
-
export declare function useMessages(locale?: string):
|
|
329
|
+
export declare function useMessages<T extends object>(table: MessageTable<T>, locale?: string): T;
|
|
287
330
|
/**
|
|
288
331
|
* Fills the `{placeholders}` in one of the strings above.
|
|
289
332
|
*
|
|
@@ -295,3 +338,73 @@ export declare function useMessages(locale?: string): NebaMessages;
|
|
|
295
338
|
* hole in the middle of a sentence.
|
|
296
339
|
*/
|
|
297
340
|
export declare function fillMessage(template: string, values: Record<string, string>): string;
|
|
341
|
+
/**
|
|
342
|
+
* A language, as `neba/locales` hands it over.
|
|
343
|
+
*
|
|
344
|
+
* Every namespace is optional and every string inside one is too: a locale
|
|
345
|
+
* fills in what it has and English answers for the rest, so a translation that
|
|
346
|
+
* has not caught up with a new component is a translation that has not caught
|
|
347
|
+
* up rather than a page of blanks.
|
|
348
|
+
*/
|
|
349
|
+
export interface NebaLocale {
|
|
350
|
+
/** Action. */
|
|
351
|
+
action?: Partial<ActionMessages>;
|
|
352
|
+
/** Link. */
|
|
353
|
+
link?: Partial<LinkMessages>;
|
|
354
|
+
/** Spoiler. */
|
|
355
|
+
spoiler?: Partial<SpoilerMessages>;
|
|
356
|
+
/** Chat. */
|
|
357
|
+
chat?: Partial<ChatMessages>;
|
|
358
|
+
/** Empty. */
|
|
359
|
+
empty?: Partial<EmptyMessages>;
|
|
360
|
+
/** Table. */
|
|
361
|
+
table?: Partial<TableMessages>;
|
|
362
|
+
/** Color. */
|
|
363
|
+
color?: Partial<ColorMessages>;
|
|
364
|
+
/** Rating. */
|
|
365
|
+
rating?: Partial<RatingMessages>;
|
|
366
|
+
/** Number. */
|
|
367
|
+
number?: Partial<NumberMessages>;
|
|
368
|
+
/** Pagination. */
|
|
369
|
+
pagination?: Partial<PaginationMessages>;
|
|
370
|
+
/** Carousel. */
|
|
371
|
+
carousel?: Partial<CarouselMessages>;
|
|
372
|
+
/** Scroll. */
|
|
373
|
+
scroll?: Partial<ScrollMessages>;
|
|
374
|
+
/** Breadcrumb. */
|
|
375
|
+
breadcrumb?: Partial<BreadcrumbMessages>;
|
|
376
|
+
/** Combobox. */
|
|
377
|
+
combobox?: Partial<ComboboxMessages>;
|
|
378
|
+
/** Overlay. */
|
|
379
|
+
overlay?: Partial<OverlayMessages>;
|
|
380
|
+
/** Window. */
|
|
381
|
+
window?: Partial<WindowMessages>;
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* Teaches the library a language.
|
|
385
|
+
*
|
|
386
|
+
* English is the only one built in. Everything else is a module under
|
|
387
|
+
* `neba/locales` that a project imports and registers once, at module scope,
|
|
388
|
+
* before it renders:
|
|
389
|
+
*
|
|
390
|
+
* ```ts
|
|
391
|
+
* import { registerMessages, ko } from 'neba/locales';
|
|
392
|
+
*
|
|
393
|
+
* registerMessages('ko', ko);
|
|
394
|
+
* ```
|
|
395
|
+
*
|
|
396
|
+
* Shipping the other seventeen unconditionally would put them in the bundle of
|
|
397
|
+
* every product that speaks one language, because a bundler cannot drop a key
|
|
398
|
+
* out of an object literal — which is the same reason the namespaces above are
|
|
399
|
+
* fourteen exports rather than one table. Registering is what makes the cost
|
|
400
|
+
* follow the need.
|
|
401
|
+
*
|
|
402
|
+
* The tag is matched the way a `locale` prop is: by script, then by region,
|
|
403
|
+
* then by language. Registering `zh-hans` answers `zh-CN` and a bare `zh`;
|
|
404
|
+
* registering `pt` answers `pt-BR`.
|
|
405
|
+
*
|
|
406
|
+
* Calling this after a tree has rendered does not re-render it. It replaces
|
|
407
|
+
* what a locale had, rather than merging into it, so a second call with a
|
|
408
|
+
* partial locale is a correction and not an addition.
|
|
409
|
+
*/
|
|
410
|
+
export declare function registerMessages(tag: string, locale: NebaLocale): void;
|