@procore/core-react 12.8.0 → 12.9.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/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
- package/dist/Avatar/Avatar.styles.js +5 -5
- package/dist/AvatarStack/AvatarStack.styles.js +7 -7
- package/dist/Badge/Badge.styles.js +2 -2
- package/dist/Banner/Banner.styles.js +10 -10
- package/dist/Box/Box.styles.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
- package/dist/Button/Button.js +8 -1
- package/dist/Button/Button.js.map +1 -1
- package/dist/Button/Button.styles.js +15 -6
- package/dist/Button/Button.styles.js.map +1 -1
- package/dist/Button/Button.types.d.ts +1 -1
- package/dist/Button/Button.types.js.map +1 -1
- package/dist/Calendar/Calendar.styles.js +8 -8
- package/dist/Card/Card.styles.js +1 -1
- package/dist/Checkbox/Checkbox.styles.js +6 -6
- package/dist/Checkbox/CheckboxTooltip.js +1 -1
- package/dist/ContactItem/ContactItem.styles.js +5 -5
- package/dist/Content/Content.styles.js +2 -2
- package/dist/DateInput/DateInput.styles.js +6 -6
- package/dist/DetailPage/DetailPage.styles.js +8 -8
- package/dist/DetailPage/DetailPage.styles.js.map +1 -1
- package/dist/Dropdown/Dropdown.styles.js +3 -3
- package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
- package/dist/Dropzone/Dropzone.js +1 -1
- package/dist/Dropzone/Dropzone.styles.js +9 -9
- package/dist/EmptyState/EmptyState.styles.js +6 -6
- package/dist/Field/Field.styles.js +3 -3
- package/dist/FileList/FileList.styles.js +4 -4
- package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
- package/dist/FileSelect/FileSelect.styles.js +2 -2
- package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
- package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
- package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
- package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
- package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
- package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
- package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
- package/dist/FileToken/FileToken.styles.js +4 -4
- package/dist/FilterToken/FilterToken.styles.js +2 -2
- package/dist/FlexList/FlexList.styles.js +1 -1
- package/dist/Form/Form.styles.js +14 -14
- package/dist/Form/StyledFormikForm.styles.js +2 -2
- package/dist/Grid/Grid.styles.js +2 -2
- package/dist/GroupSelect/GroupSelect.styles.js +1 -1
- package/dist/Input/Input.styles.js +1 -1
- package/dist/Link/Link.styles.js +1 -1
- package/dist/ListPage/ListPage.d.ts +7 -0
- package/dist/ListPage/ListPage.js +8 -0
- package/dist/ListPage/ListPage.js.map +1 -1
- package/dist/ListPage/ListPage.styles.js +8 -8
- package/dist/Loader/Loader.styles.js +2 -2
- package/dist/MenuImperative/MenuImperative.styles.js +10 -10
- package/dist/Modal/Modal.styles.js +13 -13
- package/dist/MultiSelect/MultiSelect.styles.js +6 -6
- package/dist/NextMenu/NextMenu.styles.js +3 -3
- package/dist/Notation/Notation.js +1 -1
- package/dist/NumberInput/NumberInput.styles.js +7 -7
- package/dist/Overlay/OverlayArrow.styles.js +1 -1
- package/dist/PageLayout/PageLayout.styles.d.ts +3 -1
- package/dist/PageLayout/PageLayout.styles.js +29 -23
- package/dist/PageLayout/PageLayout.styles.js.map +1 -1
- package/dist/Pagination/Pagination.styles.js +5 -5
- package/dist/Panel/Panel.styles.js +11 -11
- package/dist/Pill/Pill.styles.js +2 -2
- package/dist/PillSelect/PillSelect.styles.js +4 -4
- package/dist/Popover/Popover.styles.js +2 -2
- package/dist/Portal/Portal.styles.js +1 -1
- package/dist/ProgressBar/ProgressBar.styles.js +2 -2
- package/dist/RadioButton/RadioButton.styles.js +3 -3
- package/dist/Required/Required.styles.js +3 -3
- package/dist/Search/Search.styles.js +5 -5
- package/dist/Section/Section.js +4 -3
- package/dist/Section/Section.js.map +1 -1
- package/dist/Section/Section.styles.d.ts +1 -0
- package/dist/Section/Section.styles.js +10 -6
- package/dist/Section/Section.styles.js.map +1 -1
- package/dist/Section/Section.types.d.ts +4 -0
- package/dist/Section/Section.types.js.map +1 -1
- package/dist/SegmentedController/SegmentedController.styles.js +4 -4
- package/dist/Select/Select.styles.js +7 -7
- package/dist/Semantic/Semantic.styles.js +9 -9
- package/dist/Slider/Slider.styles.js +5 -5
- package/dist/Spinner/Spinner.styles.js +7 -7
- package/dist/SplitViewCard/SplitViewCard.context.d.ts +3 -4
- package/dist/SplitViewCard/SplitViewCard.context.js +27 -9
- package/dist/SplitViewCard/SplitViewCard.context.js.map +1 -1
- package/dist/SplitViewCard/SplitViewCard.d.ts +23 -22
- package/dist/SplitViewCard/SplitViewCard.js +106 -39
- package/dist/SplitViewCard/SplitViewCard.js.map +1 -1
- package/dist/SplitViewCard/SplitViewCard.styles.d.ts +9 -3
- package/dist/SplitViewCard/SplitViewCard.styles.js +30 -18
- package/dist/SplitViewCard/SplitViewCard.styles.js.map +1 -1
- package/dist/SplitViewCard/SplitViewCard.types.d.ts +29 -6
- package/dist/SplitViewCard/SplitViewCard.types.js.map +1 -1
- package/dist/SplitViewCard/index.d.ts +0 -2
- package/dist/SplitViewCard/index.js +0 -2
- package/dist/SplitViewCard/index.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
- package/dist/SuperSelect/SuperSelect.styles.js +37 -37
- package/dist/Switch/Switch.styles.js +4 -4
- package/dist/Table/Table.styles.js +28 -28
- package/dist/TableShelf/TableShelf.styles.js +5 -5
- package/dist/Tabs/Tabs.js +3 -1
- package/dist/Tabs/Tabs.js.map +1 -1
- package/dist/Tabs/Tabs.styles.js +29 -24
- package/dist/Tabs/Tabs.styles.js.map +1 -1
- package/dist/Tearsheet/Tearsheet.styles.js +5 -5
- package/dist/TextArea/TextArea.styles.js +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
- package/dist/Thumbnail/Thumbnail.styles.js +17 -17
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
- package/dist/TieredSelect/TieredSelect.styles.js +9 -9
- package/dist/Tile/Tile.styles.js +8 -8
- package/dist/Title/Title.styles.js +7 -7
- package/dist/Toast/Toast.styles.js +3 -3
- package/dist/ToggleButton/ToggleButton.styles.js +1 -1
- package/dist/Token/Token.styles.js +3 -3
- package/dist/ToolHeader/ToolHeader.d.ts +7 -0
- package/dist/ToolHeader/ToolHeader.js +8 -0
- package/dist/ToolHeader/ToolHeader.js.map +1 -1
- package/dist/ToolHeader/ToolHeader.styles.js +6 -6
- package/dist/ToolLandingPage/ToolLandingPage.d.ts +25 -0
- package/dist/ToolLandingPage/ToolLandingPage.js +78 -0
- package/dist/ToolLandingPage/ToolLandingPage.js.map +1 -0
- package/dist/ToolLandingPage/ToolLandingPage.styles.d.ts +4 -0
- package/dist/ToolLandingPage/ToolLandingPage.styles.js +16 -0
- package/dist/ToolLandingPage/ToolLandingPage.styles.js.map +1 -0
- package/dist/ToolLandingPage/ToolLandingPage.types.d.ts +11 -0
- package/dist/ToolLandingPage/ToolLandingPage.types.js +2 -0
- package/dist/ToolLandingPage/ToolLandingPage.types.js.map +1 -0
- package/dist/ToolLandingPage/index.d.ts +2 -0
- package/dist/ToolLandingPage/index.js +2 -0
- package/dist/ToolLandingPage/index.js.map +1 -0
- package/dist/Tooltip/Tooltip.styles.js +2 -2
- package/dist/Tree/Tree.styles.js +9 -9
- package/dist/Typeahead/Typeahead.styles.js +3 -3
- package/dist/Typography/Typography.styles.js +1 -1
- package/dist/Typography/Typography.table.story.js +2 -2
- package/dist/_hooks/I18n.d.ts +430 -0
- package/dist/_hooks/I18n.js +2 -0
- package/dist/_hooks/I18n.js.map +1 -1
- package/dist/_hooks/getI18nProviderLocale.js +1 -1
- package/dist/_hooks/getI18nProviderLocale.js.map +1 -1
- package/dist/_locales/de-DE.json +7 -2
- package/dist/_locales/en-AU.json +5 -0
- package/dist/_locales/en-CA.json +5 -0
- package/dist/_locales/en-GB.json +5 -0
- package/dist/_locales/es-ES.json +5 -0
- package/dist/_locales/es.json +10 -5
- package/dist/_locales/fr-CA.json +9 -4
- package/dist/_locales/fr-FR.json +12 -7
- package/dist/_locales/is-IS.json +5 -0
- package/dist/_locales/ja-JP.json +45 -40
- package/dist/_locales/pseudo.json +365 -0
- package/dist/_locales/pt-BR.json +7 -2
- package/dist/_locales/th-TH.json +5 -0
- package/dist/_locales/zh-SG.json +5 -0
- package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
- package/dist/_typedoc/AvatarStack/AvatarStack.types.json +23 -23
- package/dist/_typedoc/Badge/Badge.types.json +6 -6
- package/dist/_typedoc/Banner/Banner.types.json +13 -13
- package/dist/_typedoc/Box/Box.types.json +68 -68
- package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
- package/dist/_typedoc/Button/Button.types.json +14 -14
- package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
- package/dist/_typedoc/Card/Card.types.json +6 -6
- package/dist/_typedoc/Checkbox/Checkbox.types.json +9 -9
- package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
- package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
- package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
- package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
- package/dist/_typedoc/Dropdown/Dropdown.types.json +39 -39
- package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +30 -30
- package/dist/_typedoc/Dropzone/Dropzone.types.json +41 -41
- package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
- package/dist/_typedoc/FileList/FileList.types.json +9 -9
- package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
- package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
- package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
- package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
- package/dist/_typedoc/Flex/Flex.types.json +27 -27
- package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
- package/dist/_typedoc/Form/Form.types.json +726 -726
- package/dist/_typedoc/Grid/Grid.types.json +8 -8
- package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
- package/dist/_typedoc/Input/Input.types.json +2 -2
- package/dist/_typedoc/Link/Link.types.json +4 -4
- package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
- package/dist/_typedoc/Menu/Menu.types.json +62 -62
- package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
- package/dist/_typedoc/Modal/Modal.types.json +46 -46
- package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
- package/dist/_typedoc/Notation/Notation.types.json +4 -4
- package/dist/_typedoc/NumberInput/NumberInput.types.json +37 -37
- package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +31 -31
- package/dist/_typedoc/PageLayout/PageLayout.types.json +28 -28
- package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
- package/dist/_typedoc/Panel/Panel.types.json +38 -28
- package/dist/_typedoc/Pill/Pill.types.json +2 -2
- package/dist/_typedoc/PillSelect/PillSelect.types.json +47 -47
- package/dist/_typedoc/Popover/Popover.types.json +14 -14
- package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
- package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
- package/dist/_typedoc/Required/Required.types.json +5 -5
- package/dist/_typedoc/Search/Search.types.json +18 -18
- package/dist/_typedoc/Section/Section.types.json +24 -14
- package/dist/_typedoc/SegmentedController/SegmentedController.types.json +20 -20
- package/dist/_typedoc/Select/Select.types.json +58 -58
- package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
- package/dist/_typedoc/Slider/Slider.types.json +6 -6
- package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
- package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +134 -0
- package/dist/_typedoc/Switch/Switch.types.json +3 -3
- package/dist/_typedoc/Table/Table.types.json +99 -99
- package/dist/_typedoc/Tabs/Tabs.types.json +19 -19
- package/dist/_typedoc/Tearsheet/Tearsheet.types.json +16 -16
- package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
- package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
- package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
- package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
- package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +44 -44
- package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
- package/dist/_typedoc/Tile/Tile.types.json +30 -30
- package/dist/_typedoc/Title/Title.types.json +1 -1
- package/dist/_typedoc/Toast/Toast.types.json +4 -4
- package/dist/_typedoc/ToggleButton/ToggleButton.types.json +3 -3
- package/dist/_typedoc/Token/Token.types.json +4 -4
- package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
- package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +84 -0
- package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
- package/dist/_typedoc/Tree/Tree.types.json +86 -86
- package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
- package/dist/_typedoc/Typography/Typography.types.json +9 -9
- package/dist/_typedoc/_utils/types.json +3 -3
- package/dist/_utils/propsTypedoc.d.ts +2 -0
- package/dist/_utils/propsTypedoc.js +2 -0
- package/dist/_utils/propsTypedoc.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
- package/dist/NextListPage/NextListPage.d.ts +0 -24
- package/dist/NextListPage/NextListPage.js +0 -44
- package/dist/NextListPage/NextListPage.js.map +0 -1
- package/dist/NextListPage/NextListPage.types.d.ts +0 -3
- package/dist/NextListPage/NextListPage.types.js +0 -2
- package/dist/NextListPage/NextListPage.types.js.map +0 -1
- package/dist/NextListPage/index.d.ts +0 -2
- package/dist/NextListPage/index.js +0 -2
- package/dist/NextListPage/index.js.map +0 -1
- package/dist/SplitViewCard/useSplitViewCard.d.ts +0 -5
- package/dist/SplitViewCard/useSplitViewCard.js +0 -14
- package/dist/SplitViewCard/useSplitViewCard.js.map +0 -1
package/dist/_hooks/I18n.d.ts
CHANGED
|
@@ -301,6 +301,11 @@ export declare const coreTranslations: {
|
|
|
301
301
|
clear: string;
|
|
302
302
|
search: string;
|
|
303
303
|
};
|
|
304
|
+
splitViewCard: {
|
|
305
|
+
a11y: {
|
|
306
|
+
close: string;
|
|
307
|
+
};
|
|
308
|
+
};
|
|
304
309
|
tabs: {
|
|
305
310
|
more: string;
|
|
306
311
|
};
|
|
@@ -1026,6 +1031,11 @@ export declare const coreTranslations: {
|
|
|
1026
1031
|
clear: string;
|
|
1027
1032
|
search: string;
|
|
1028
1033
|
};
|
|
1034
|
+
splitViewCard: {
|
|
1035
|
+
a11y: {
|
|
1036
|
+
close: string;
|
|
1037
|
+
};
|
|
1038
|
+
};
|
|
1029
1039
|
tabs: {
|
|
1030
1040
|
more: string;
|
|
1031
1041
|
};
|
|
@@ -1386,6 +1396,11 @@ export declare const coreTranslations: {
|
|
|
1386
1396
|
clear: string;
|
|
1387
1397
|
search: string;
|
|
1388
1398
|
};
|
|
1399
|
+
splitViewCard: {
|
|
1400
|
+
a11y: {
|
|
1401
|
+
close: string;
|
|
1402
|
+
};
|
|
1403
|
+
};
|
|
1389
1404
|
tabs: {
|
|
1390
1405
|
more: string;
|
|
1391
1406
|
};
|
|
@@ -1746,6 +1761,11 @@ export declare const coreTranslations: {
|
|
|
1746
1761
|
clear: string;
|
|
1747
1762
|
search: string;
|
|
1748
1763
|
};
|
|
1764
|
+
splitViewCard: {
|
|
1765
|
+
a11y: {
|
|
1766
|
+
close: string;
|
|
1767
|
+
};
|
|
1768
|
+
};
|
|
1749
1769
|
tabs: {
|
|
1750
1770
|
more: string;
|
|
1751
1771
|
};
|
|
@@ -2106,6 +2126,11 @@ export declare const coreTranslations: {
|
|
|
2106
2126
|
clear: string;
|
|
2107
2127
|
search: string;
|
|
2108
2128
|
};
|
|
2129
|
+
splitViewCard: {
|
|
2130
|
+
a11y: {
|
|
2131
|
+
close: string;
|
|
2132
|
+
};
|
|
2133
|
+
};
|
|
2109
2134
|
tabs: {
|
|
2110
2135
|
more: string;
|
|
2111
2136
|
};
|
|
@@ -2466,6 +2491,11 @@ export declare const coreTranslations: {
|
|
|
2466
2491
|
clear: string;
|
|
2467
2492
|
search: string;
|
|
2468
2493
|
};
|
|
2494
|
+
splitViewCard: {
|
|
2495
|
+
a11y: {
|
|
2496
|
+
close: string;
|
|
2497
|
+
};
|
|
2498
|
+
};
|
|
2469
2499
|
tabs: {
|
|
2470
2500
|
more: string;
|
|
2471
2501
|
};
|
|
@@ -2826,6 +2856,11 @@ export declare const coreTranslations: {
|
|
|
2826
2856
|
clear: string;
|
|
2827
2857
|
search: string;
|
|
2828
2858
|
};
|
|
2859
|
+
splitViewCard: {
|
|
2860
|
+
a11y: {
|
|
2861
|
+
close: string;
|
|
2862
|
+
};
|
|
2863
|
+
};
|
|
2829
2864
|
tabs: {
|
|
2830
2865
|
more: string;
|
|
2831
2866
|
};
|
|
@@ -3186,6 +3221,11 @@ export declare const coreTranslations: {
|
|
|
3186
3221
|
clear: string;
|
|
3187
3222
|
search: string;
|
|
3188
3223
|
};
|
|
3224
|
+
splitViewCard: {
|
|
3225
|
+
a11y: {
|
|
3226
|
+
close: string;
|
|
3227
|
+
};
|
|
3228
|
+
};
|
|
3189
3229
|
tabs: {
|
|
3190
3230
|
more: string;
|
|
3191
3231
|
};
|
|
@@ -3546,6 +3586,11 @@ export declare const coreTranslations: {
|
|
|
3546
3586
|
clear: string;
|
|
3547
3587
|
search: string;
|
|
3548
3588
|
};
|
|
3589
|
+
splitViewCard: {
|
|
3590
|
+
a11y: {
|
|
3591
|
+
close: string;
|
|
3592
|
+
};
|
|
3593
|
+
};
|
|
3549
3594
|
tabs: {
|
|
3550
3595
|
more: string;
|
|
3551
3596
|
};
|
|
@@ -3906,6 +3951,376 @@ export declare const coreTranslations: {
|
|
|
3906
3951
|
clear: string;
|
|
3907
3952
|
search: string;
|
|
3908
3953
|
};
|
|
3954
|
+
splitViewCard: {
|
|
3955
|
+
a11y: {
|
|
3956
|
+
close: string;
|
|
3957
|
+
};
|
|
3958
|
+
};
|
|
3959
|
+
tabs: {
|
|
3960
|
+
more: string;
|
|
3961
|
+
};
|
|
3962
|
+
thumbnail: {
|
|
3963
|
+
checked: string;
|
|
3964
|
+
};
|
|
3965
|
+
thumbnailList: {
|
|
3966
|
+
removeUpload: string;
|
|
3967
|
+
uploading: string;
|
|
3968
|
+
};
|
|
3969
|
+
toast: {
|
|
3970
|
+
a11y: {
|
|
3971
|
+
dismiss: string;
|
|
3972
|
+
};
|
|
3973
|
+
};
|
|
3974
|
+
fileList: {
|
|
3975
|
+
downloadAll: string;
|
|
3976
|
+
download: string;
|
|
3977
|
+
noPreview: string;
|
|
3978
|
+
};
|
|
3979
|
+
tieredSelect: {
|
|
3980
|
+
emptyMessage: string;
|
|
3981
|
+
goToTier: string;
|
|
3982
|
+
placeholder: string;
|
|
3983
|
+
quickCreateActionLabel: string;
|
|
3984
|
+
quickCreateCancelLabel: string;
|
|
3985
|
+
quickCreateCreateLabel: string;
|
|
3986
|
+
quickCreatePlaceholder: string;
|
|
3987
|
+
searchEmptyMessage: string;
|
|
3988
|
+
searchPlaceholder: string;
|
|
3989
|
+
spinnerLabel: string;
|
|
3990
|
+
};
|
|
3991
|
+
tieredDropdown: {
|
|
3992
|
+
emptyMessage: string;
|
|
3993
|
+
searchEmptyMessage: string;
|
|
3994
|
+
searchPlaceholder: string;
|
|
3995
|
+
spinnerLabel: string;
|
|
3996
|
+
};
|
|
3997
|
+
token: {
|
|
3998
|
+
remove: string;
|
|
3999
|
+
};
|
|
4000
|
+
toolHeader: {
|
|
4001
|
+
settingsAction: string;
|
|
4002
|
+
};
|
|
4003
|
+
fileSelect: {
|
|
4004
|
+
localFilesSource: string;
|
|
4005
|
+
uploadFailed: string;
|
|
4006
|
+
maxNumberOfFilesSelected: string;
|
|
4007
|
+
};
|
|
4008
|
+
required: {
|
|
4009
|
+
requiredFields: string;
|
|
4010
|
+
};
|
|
4011
|
+
avatarStack: {
|
|
4012
|
+
viewAll: string;
|
|
4013
|
+
close: string;
|
|
4014
|
+
};
|
|
4015
|
+
panel: {
|
|
4016
|
+
close: string;
|
|
4017
|
+
goBack: string;
|
|
4018
|
+
};
|
|
4019
|
+
};
|
|
4020
|
+
};
|
|
4021
|
+
readonly pseudo: {
|
|
4022
|
+
core: {
|
|
4023
|
+
banner: {
|
|
4024
|
+
dismissAlert: string;
|
|
4025
|
+
};
|
|
4026
|
+
breadcrumbs: {
|
|
4027
|
+
label: string;
|
|
4028
|
+
};
|
|
4029
|
+
calendar: {
|
|
4030
|
+
navigationLabel: string;
|
|
4031
|
+
};
|
|
4032
|
+
connected: {
|
|
4033
|
+
fileSelect: {
|
|
4034
|
+
documents: string;
|
|
4035
|
+
drawings: string;
|
|
4036
|
+
forms: string;
|
|
4037
|
+
photos: string;
|
|
4038
|
+
selectAlbum: string;
|
|
4039
|
+
selectAnAlbum: string;
|
|
4040
|
+
selectArea: string;
|
|
4041
|
+
selectAnArea: string;
|
|
4042
|
+
selectDiscipline: string;
|
|
4043
|
+
selectADiscipline: string;
|
|
4044
|
+
selectSet: string;
|
|
4045
|
+
selectASet: string;
|
|
4046
|
+
selectTemplate: string;
|
|
4047
|
+
selectATemplate: string;
|
|
4048
|
+
};
|
|
4049
|
+
emails: {
|
|
4050
|
+
emailSendErrorTitle: string;
|
|
4051
|
+
emailBodyRequiredError: string;
|
|
4052
|
+
emailContentValidationError: string;
|
|
4053
|
+
emailContentDisclaimer: string;
|
|
4054
|
+
recipientSelectPlaceholder: string;
|
|
4055
|
+
emailRecipientRequiredError: string;
|
|
4056
|
+
emailSubjectRequiredError: string;
|
|
4057
|
+
goToAllEmails: string;
|
|
4058
|
+
sendEmail: string;
|
|
4059
|
+
replyAll: string;
|
|
4060
|
+
downloadAll: string;
|
|
4061
|
+
showAll: string;
|
|
4062
|
+
showLess: string;
|
|
4063
|
+
composeEmailPageTitle: string;
|
|
4064
|
+
emailSentMessage: string;
|
|
4065
|
+
from: string;
|
|
4066
|
+
to: string;
|
|
4067
|
+
cc: string;
|
|
4068
|
+
bcc: string;
|
|
4069
|
+
downloadPdfLong: string;
|
|
4070
|
+
downloadPdfShort: string;
|
|
4071
|
+
privateEmailDisclaimer: string;
|
|
4072
|
+
privateLabel: string;
|
|
4073
|
+
settingsLink: string;
|
|
4074
|
+
composeNewEmail: string;
|
|
4075
|
+
startNewCommunication: string;
|
|
4076
|
+
emptyStateTitle: string;
|
|
4077
|
+
emptyStateDescription: string;
|
|
4078
|
+
reply: string;
|
|
4079
|
+
cancel: string;
|
|
4080
|
+
subject: string;
|
|
4081
|
+
subjectPlaceholder: string;
|
|
4082
|
+
};
|
|
4083
|
+
distributionSelect: {
|
|
4084
|
+
noCompany: string;
|
|
4085
|
+
peopleCount: string;
|
|
4086
|
+
distributionGroups: string;
|
|
4087
|
+
people: string;
|
|
4088
|
+
};
|
|
4089
|
+
relatedItems: {
|
|
4090
|
+
cancel: string;
|
|
4091
|
+
close: string;
|
|
4092
|
+
date: string;
|
|
4093
|
+
itemType: string;
|
|
4094
|
+
itemTypeGroupLabel: {
|
|
4095
|
+
dailyLog: string;
|
|
4096
|
+
prostoreFile: string;
|
|
4097
|
+
};
|
|
4098
|
+
itemName: string;
|
|
4099
|
+
loading: string;
|
|
4100
|
+
notes: string;
|
|
4101
|
+
notesPlaceholder: string;
|
|
4102
|
+
newItem: string;
|
|
4103
|
+
noRelatedItems: {
|
|
4104
|
+
title: string;
|
|
4105
|
+
description: string;
|
|
4106
|
+
};
|
|
4107
|
+
noItems: {
|
|
4108
|
+
title: string;
|
|
4109
|
+
description: string;
|
|
4110
|
+
};
|
|
4111
|
+
noResultsSearchQuery: {
|
|
4112
|
+
title: string;
|
|
4113
|
+
description: string;
|
|
4114
|
+
};
|
|
4115
|
+
noResultsServerError: {
|
|
4116
|
+
title: string;
|
|
4117
|
+
description: string;
|
|
4118
|
+
action: string;
|
|
4119
|
+
};
|
|
4120
|
+
panelTitle: string;
|
|
4121
|
+
search: string;
|
|
4122
|
+
searchItemType: string;
|
|
4123
|
+
submit: string;
|
|
4124
|
+
toast: {
|
|
4125
|
+
itemAdded: string;
|
|
4126
|
+
itemAdditionFailed: string;
|
|
4127
|
+
itemRemoved: string;
|
|
4128
|
+
requestError: string;
|
|
4129
|
+
};
|
|
4130
|
+
};
|
|
4131
|
+
};
|
|
4132
|
+
dateTimeFormat: {
|
|
4133
|
+
dateAtTime: string;
|
|
4134
|
+
timeOnDate: string;
|
|
4135
|
+
};
|
|
4136
|
+
table: {
|
|
4137
|
+
sortableColumn: string;
|
|
4138
|
+
};
|
|
4139
|
+
dataTable: {
|
|
4140
|
+
emptyState: {
|
|
4141
|
+
noFilteredResults: {
|
|
4142
|
+
description: string;
|
|
4143
|
+
title: string;
|
|
4144
|
+
};
|
|
4145
|
+
};
|
|
4146
|
+
exporting: string;
|
|
4147
|
+
filters: {
|
|
4148
|
+
filters: string;
|
|
4149
|
+
moreFilters: string;
|
|
4150
|
+
clearAllFilters: string;
|
|
4151
|
+
};
|
|
4152
|
+
grandTotals: string;
|
|
4153
|
+
search: string;
|
|
4154
|
+
subtotals: string;
|
|
4155
|
+
tableSettings: {
|
|
4156
|
+
configureColumns: string;
|
|
4157
|
+
resetToDefault: string;
|
|
4158
|
+
rowHeight: string;
|
|
4159
|
+
small: string;
|
|
4160
|
+
medium: string;
|
|
4161
|
+
large: string;
|
|
4162
|
+
tableSettings: string;
|
|
4163
|
+
};
|
|
4164
|
+
};
|
|
4165
|
+
dateInput: {
|
|
4166
|
+
clear: string;
|
|
4167
|
+
ariaLabel: string;
|
|
4168
|
+
segment: {
|
|
4169
|
+
ariaLabel: {
|
|
4170
|
+
withValue: {
|
|
4171
|
+
month: string;
|
|
4172
|
+
day: string;
|
|
4173
|
+
year: string;
|
|
4174
|
+
};
|
|
4175
|
+
withoutValue: {
|
|
4176
|
+
month: string;
|
|
4177
|
+
day: string;
|
|
4178
|
+
year: string;
|
|
4179
|
+
};
|
|
4180
|
+
};
|
|
4181
|
+
ariaValueText: {
|
|
4182
|
+
empty: string;
|
|
4183
|
+
};
|
|
4184
|
+
};
|
|
4185
|
+
clearButton: {
|
|
4186
|
+
ariaLabel: string;
|
|
4187
|
+
};
|
|
4188
|
+
};
|
|
4189
|
+
dropdown: {
|
|
4190
|
+
search: string;
|
|
4191
|
+
moreOptions: string;
|
|
4192
|
+
loading: string;
|
|
4193
|
+
};
|
|
4194
|
+
dropzone: {
|
|
4195
|
+
uploadFiles: {
|
|
4196
|
+
one: string;
|
|
4197
|
+
other: string;
|
|
4198
|
+
};
|
|
4199
|
+
dragAndDrop: string;
|
|
4200
|
+
incorrectFileTypeMessage: {
|
|
4201
|
+
one: string;
|
|
4202
|
+
other: string;
|
|
4203
|
+
};
|
|
4204
|
+
incorrectFileNumber: string;
|
|
4205
|
+
invalidAmountAttachments: {
|
|
4206
|
+
one: string;
|
|
4207
|
+
other: string;
|
|
4208
|
+
};
|
|
4209
|
+
hideDetails: string;
|
|
4210
|
+
showDetails: string;
|
|
4211
|
+
errorTitle: string;
|
|
4212
|
+
oneFileAtATimeError: string;
|
|
4213
|
+
multipleErrorsMessage: string;
|
|
4214
|
+
maxFileSizeErrorGroup: string;
|
|
4215
|
+
minFileSizeErrorGroup: string;
|
|
4216
|
+
maxFileNumberErrorGroup: string;
|
|
4217
|
+
wrongFileTypeErrorGroup: string;
|
|
4218
|
+
standaloneMaxFileNumberError: string;
|
|
4219
|
+
standaloneUnsupportedFileTypeError: string;
|
|
4220
|
+
standaloneMinFileSizeError: string;
|
|
4221
|
+
standaloneMaxFileSizeError: string;
|
|
4222
|
+
uploadTotalProgress: {
|
|
4223
|
+
withFailed: string;
|
|
4224
|
+
withoutFailed: string;
|
|
4225
|
+
};
|
|
4226
|
+
};
|
|
4227
|
+
modal: {
|
|
4228
|
+
a11y: {
|
|
4229
|
+
close: string;
|
|
4230
|
+
};
|
|
4231
|
+
cancel: string;
|
|
4232
|
+
};
|
|
4233
|
+
multiSelect: {
|
|
4234
|
+
clearAll: string;
|
|
4235
|
+
selectValues: string;
|
|
4236
|
+
noResults: string;
|
|
4237
|
+
};
|
|
4238
|
+
tearsheet: {
|
|
4239
|
+
a11y: {
|
|
4240
|
+
close: string;
|
|
4241
|
+
};
|
|
4242
|
+
};
|
|
4243
|
+
fileAttacher: {
|
|
4244
|
+
attachFiles: {
|
|
4245
|
+
one: string;
|
|
4246
|
+
other: string;
|
|
4247
|
+
};
|
|
4248
|
+
};
|
|
4249
|
+
fileToken: {
|
|
4250
|
+
uploading: string;
|
|
4251
|
+
};
|
|
4252
|
+
tree: {
|
|
4253
|
+
selectionLimit: {
|
|
4254
|
+
one: string;
|
|
4255
|
+
other: string;
|
|
4256
|
+
};
|
|
4257
|
+
unsupportedFileType: {
|
|
4258
|
+
specific: string;
|
|
4259
|
+
unspecific: string;
|
|
4260
|
+
};
|
|
4261
|
+
};
|
|
4262
|
+
fileExplorer: {
|
|
4263
|
+
filesSelectedWithLimit: string;
|
|
4264
|
+
ungroupedThumbnailGridGroup: string;
|
|
4265
|
+
filesSelected: {
|
|
4266
|
+
one: string;
|
|
4267
|
+
other: string;
|
|
4268
|
+
};
|
|
4269
|
+
cancelAction: string;
|
|
4270
|
+
attachAction: string;
|
|
4271
|
+
maxNumberOfFilesSelected: string;
|
|
4272
|
+
modalTitle: string;
|
|
4273
|
+
filesPendingUpload: string;
|
|
4274
|
+
noSelectedItems: string;
|
|
4275
|
+
emptySearchResults: string;
|
|
4276
|
+
noItems: string;
|
|
4277
|
+
searchPlaceholder: string;
|
|
4278
|
+
uploadFailed: string;
|
|
4279
|
+
supportedFileTypes: string;
|
|
4280
|
+
};
|
|
4281
|
+
form: {
|
|
4282
|
+
closeWithConfirm: {
|
|
4283
|
+
confirmMessage: string;
|
|
4284
|
+
};
|
|
4285
|
+
checkbox: {
|
|
4286
|
+
no: string;
|
|
4287
|
+
yes: string;
|
|
4288
|
+
checked: string;
|
|
4289
|
+
unchecked: string;
|
|
4290
|
+
};
|
|
4291
|
+
errorBanner: {
|
|
4292
|
+
coundNotCreateItem: string;
|
|
4293
|
+
couldNotUpdateItem: string;
|
|
4294
|
+
fixErrorsToCreate: string;
|
|
4295
|
+
fixErrorsToUpdate: string;
|
|
4296
|
+
};
|
|
4297
|
+
field: {
|
|
4298
|
+
tooltipHelp: string;
|
|
4299
|
+
};
|
|
4300
|
+
};
|
|
4301
|
+
menu: {
|
|
4302
|
+
search: string;
|
|
4303
|
+
};
|
|
4304
|
+
pagination: {
|
|
4305
|
+
interval: string;
|
|
4306
|
+
notation: string;
|
|
4307
|
+
page: string;
|
|
4308
|
+
nextPage: string;
|
|
4309
|
+
prevPage: string;
|
|
4310
|
+
};
|
|
4311
|
+
search: {
|
|
4312
|
+
clear: string;
|
|
4313
|
+
goSearch: string;
|
|
4314
|
+
};
|
|
4315
|
+
select: {
|
|
4316
|
+
clear: string;
|
|
4317
|
+
search: string;
|
|
4318
|
+
};
|
|
4319
|
+
splitViewCard: {
|
|
4320
|
+
a11y: {
|
|
4321
|
+
close: string;
|
|
4322
|
+
};
|
|
4323
|
+
};
|
|
3909
4324
|
tabs: {
|
|
3910
4325
|
more: string;
|
|
3911
4326
|
};
|
|
@@ -4266,6 +4681,11 @@ export declare const coreTranslations: {
|
|
|
4266
4681
|
clear: string;
|
|
4267
4682
|
search: string;
|
|
4268
4683
|
};
|
|
4684
|
+
splitViewCard: {
|
|
4685
|
+
a11y: {
|
|
4686
|
+
close: string;
|
|
4687
|
+
};
|
|
4688
|
+
};
|
|
4269
4689
|
tabs: {
|
|
4270
4690
|
more: string;
|
|
4271
4691
|
};
|
|
@@ -4626,6 +5046,11 @@ export declare const coreTranslations: {
|
|
|
4626
5046
|
clear: string;
|
|
4627
5047
|
search: string;
|
|
4628
5048
|
};
|
|
5049
|
+
splitViewCard: {
|
|
5050
|
+
a11y: {
|
|
5051
|
+
close: string;
|
|
5052
|
+
};
|
|
5053
|
+
};
|
|
4629
5054
|
tabs: {
|
|
4630
5055
|
more: string;
|
|
4631
5056
|
};
|
|
@@ -4986,6 +5411,11 @@ export declare const coreTranslations: {
|
|
|
4986
5411
|
clear: string;
|
|
4987
5412
|
search: string;
|
|
4988
5413
|
};
|
|
5414
|
+
splitViewCard: {
|
|
5415
|
+
a11y: {
|
|
5416
|
+
close: string;
|
|
5417
|
+
};
|
|
5418
|
+
};
|
|
4989
5419
|
tabs: {
|
|
4990
5420
|
more: string;
|
|
4991
5421
|
};
|
package/dist/_hooks/I18n.js
CHANGED
|
@@ -15,6 +15,7 @@ import frCA from '../_locales/fr-CA.json';
|
|
|
15
15
|
import frFR from '../_locales/fr-FR.json';
|
|
16
16
|
import isIS from '../_locales/is-IS.json';
|
|
17
17
|
import jaJP from '../_locales/ja-JP.json';
|
|
18
|
+
import pseudo from '../_locales/pseudo.json';
|
|
18
19
|
import ptBR from '../_locales/pt-BR.json';
|
|
19
20
|
import thTH from '../_locales/th-TH.json';
|
|
20
21
|
import zhSG from '../_locales/zh-SG.json';
|
|
@@ -32,6 +33,7 @@ export var coreTranslations = {
|
|
|
32
33
|
'fr-FR': frFR,
|
|
33
34
|
'is-IS': isIS,
|
|
34
35
|
'ja-JP': jaJP,
|
|
36
|
+
pseudo: pseudo,
|
|
35
37
|
'pt-BR': ptBR,
|
|
36
38
|
'th-TH': thTH,
|
|
37
39
|
'zh-SG': zhSG
|
package/dist/_hooks/I18n.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"I18n.js","names":["createI18njs","R","React","deDE","enAU","enCA","enGB","en","esES","es","frCA","frFR","isIS","jaJP","ptBR","thTH","zhSG","OVERWRITE_LOCALE_MAP","coreTranslations","getValidLocale","_ref","locale","translations","FALLBACK_LOCALE_MAP","getTranslationFallbacks","setTranslationFallbacks","_ref2","I18n","locales","useI18n","_ref3","_locale","_ref3$translations","_translations","mergeDeepLeft","I18nContext","createContext","I18nProvider","_ref4","children","props","_objectWithoutProperties","_excluded","createElement","Provider","value","useI18nContext","ctx","useContext"],"sources":["../../src/_hooks/I18n.tsx"],"sourcesContent":["import type { I18njs, I18njsConfig } from '@procore/core-i18n-js'\nimport { createI18njs } from '@procore/core-i18n-js'\nimport * as R from 'ramda'\nimport React from 'react'\nimport deDE from '../_locales/de-DE.json'\nimport enAU from '../_locales/en-AU.json'\nimport enCA from '../_locales/en-CA.json'\nimport enGB from '../_locales/en-GB.json'\nimport en from '../_locales/en.json'\nimport esES from '../_locales/es-ES.json'\nimport es from '../_locales/es.json'\nimport frCA from '../_locales/fr-CA.json'\nimport frFR from '../_locales/fr-FR.json'\nimport isIS from '../_locales/is-IS.json'\nimport jaJP from '../_locales/ja-JP.json'\nimport ptBR from '../_locales/pt-BR.json'\nimport thTH from '../_locales/th-TH.json'\nimport zhSG from '../_locales/zh-SG.json'\nimport { OVERWRITE_LOCALE_MAP } from './getI18nProviderLocale'\n\ntype I18nConfig = Omit<I18njsConfig, 'I18n'>\n\ntype RequiredI18nConfig = {\n I18n: I18njs\n locale: string\n}\n\nexport type Locale =\n | 'de-DE'\n | 'en-AE'\n | 'en-AU'\n | 'en-CA'\n | 'en-GB'\n | 'en-SG'\n | 'en'\n | 'es-ES'\n | 'es'\n | 'fr-CA'\n | 'fr-FR'\n | 'is-IS'\n | 'ja-JP'\n | 'pt-BR'\n | 'th-TH'\n | 'zh-SG'\n | 'pseudo'\n\n/* Set up i18n-js */\nexport const coreTranslations = {\n 'de-DE': deDE,\n en,\n 'en-AU': enAU,\n 'en-CA': enCA,\n 'en-GB': enGB,\n es,\n 'es-ES': esES,\n 'fr-CA': frCA,\n 'fr-FR': frFR,\n 'is-IS': isIS,\n 'ja-JP': jaJP,\n 'pt-BR': ptBR,\n 'th-TH': thTH,\n 'zh-SG': zhSG,\n} as const\n\nfunction getValidLocale({ locale, translations }: I18njsConfig) {\n return locale\n}\n\nconst FALLBACK_LOCALE_MAP: Record<string, string> = {\n 'es-ES': 'es',\n 'fr-FR': 'fr-CA',\n}\n\nfunction getTranslationFallbacks(locale: string) {\n if (locale === 'en') {\n return ['en']\n }\n\n if (OVERWRITE_LOCALE_MAP[locale]) {\n return [OVERWRITE_LOCALE_MAP[locale], 'en']\n }\n\n if (FALLBACK_LOCALE_MAP[locale]) {\n return [locale, FALLBACK_LOCALE_MAP[locale], 'en']\n }\n\n return [locale, 'en']\n}\n\nfunction setTranslationFallbacks({ I18n, locale }: RequiredI18nConfig) {\n I18n.locales[locale] = function () {\n return getTranslationFallbacks(locale)\n }\n\n return I18n\n}\n\nexport function useI18n({\n locale: _locale,\n translations: _translations = {},\n}: I18njsConfig): I18njs {\n const translations = R.mergeDeepLeft(_translations, coreTranslations)\n const locale = getValidLocale({ locale: _locale, translations })\n const I18n = createI18njs({\n locale,\n translations,\n })\n return setTranslationFallbacks({ I18n, locale: locale || 'en' })\n}\n\nexport const I18nContext: React.Context<I18njs> = React.createContext(\n createI18njs({\n locale: 'en',\n translations: coreTranslations, // inject our translations\n })\n)\n\nexport function I18nProvider({\n children,\n ...props\n}: I18nConfig & { children: React.ReactNode }) {\n return (\n <I18nContext.Provider value={useI18n(props)}>\n {children}\n </I18nContext.Provider>\n )\n}\n\nexport function useI18nContext() {\n const ctx = React.useContext(I18nContext)\n\n if (!ctx) {\n // TODO investigate a way to do warnings that won't annoy people\n // we probably need to introduce a build system to have nice dev warnings\n // console.warn()\n }\n\n return ctx\n}\n"],"mappings":";;;AACA,SAASA,YAAY,QAAQ,uBAAuB;AACpD,OAAO,KAAKC,CAAC,MAAM,OAAO;AAC1B,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,EAAE,MAAM,qBAAqB;AACpC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,EAAE,MAAM,qBAAqB;AACpC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,OAAOC,IAAI,MAAM,wBAAwB;AACzC,SAASC,oBAAoB,QAAQ,yBAAyB;AA4B9D;AACA,OAAO,IAAMC,gBAAgB,GAAG;EAC9B,OAAO,
|
|
1
|
+
{"version":3,"file":"I18n.js","names":["createI18njs","R","React","deDE","enAU","enCA","enGB","en","esES","es","frCA","frFR","isIS","jaJP","pseudo","ptBR","thTH","zhSG","OVERWRITE_LOCALE_MAP","coreTranslations","getValidLocale","_ref","locale","translations","FALLBACK_LOCALE_MAP","getTranslationFallbacks","setTranslationFallbacks","_ref2","I18n","locales","useI18n","_ref3","_locale","_ref3$translations","_translations","mergeDeepLeft","I18nContext","createContext","I18nProvider","_ref4","children","props","_objectWithoutProperties","_excluded","createElement","Provider","value","useI18nContext","ctx","useContext"],"sources":["../../src/_hooks/I18n.tsx"],"sourcesContent":["import type { I18njs, I18njsConfig } from '@procore/core-i18n-js'\nimport { createI18njs } from '@procore/core-i18n-js'\nimport * as R from 'ramda'\nimport React from 'react'\nimport deDE from '../_locales/de-DE.json'\nimport enAU from '../_locales/en-AU.json'\nimport enCA from '../_locales/en-CA.json'\nimport enGB from '../_locales/en-GB.json'\nimport en from '../_locales/en.json'\nimport esES from '../_locales/es-ES.json'\nimport es from '../_locales/es.json'\nimport frCA from '../_locales/fr-CA.json'\nimport frFR from '../_locales/fr-FR.json'\nimport isIS from '../_locales/is-IS.json'\nimport jaJP from '../_locales/ja-JP.json'\nimport pseudo from '../_locales/pseudo.json'\nimport ptBR from '../_locales/pt-BR.json'\nimport thTH from '../_locales/th-TH.json'\nimport zhSG from '../_locales/zh-SG.json'\nimport { OVERWRITE_LOCALE_MAP } from './getI18nProviderLocale'\n\ntype I18nConfig = Omit<I18njsConfig, 'I18n'>\n\ntype RequiredI18nConfig = {\n I18n: I18njs\n locale: string\n}\n\nexport type Locale =\n | 'de-DE'\n | 'en-AE'\n | 'en-AU'\n | 'en-CA'\n | 'en-GB'\n | 'en-SG'\n | 'en'\n | 'es-ES'\n | 'es'\n | 'fr-CA'\n | 'fr-FR'\n | 'is-IS'\n | 'ja-JP'\n | 'pt-BR'\n | 'th-TH'\n | 'zh-SG'\n | 'pseudo'\n\n/* Set up i18n-js */\nexport const coreTranslations = {\n 'de-DE': deDE,\n en,\n 'en-AU': enAU,\n 'en-CA': enCA,\n 'en-GB': enGB,\n es,\n 'es-ES': esES,\n 'fr-CA': frCA,\n 'fr-FR': frFR,\n 'is-IS': isIS,\n 'ja-JP': jaJP,\n pseudo,\n 'pt-BR': ptBR,\n 'th-TH': thTH,\n 'zh-SG': zhSG,\n} as const\n\nfunction getValidLocale({ locale, translations }: I18njsConfig) {\n return locale\n}\n\nconst FALLBACK_LOCALE_MAP: Record<string, string> = {\n 'es-ES': 'es',\n 'fr-FR': 'fr-CA',\n}\n\nfunction getTranslationFallbacks(locale: string) {\n if (locale === 'en') {\n return ['en']\n }\n\n if (OVERWRITE_LOCALE_MAP[locale]) {\n return [OVERWRITE_LOCALE_MAP[locale], 'en']\n }\n\n if (FALLBACK_LOCALE_MAP[locale]) {\n return [locale, FALLBACK_LOCALE_MAP[locale], 'en']\n }\n\n return [locale, 'en']\n}\n\nfunction setTranslationFallbacks({ I18n, locale }: RequiredI18nConfig) {\n I18n.locales[locale] = function () {\n return getTranslationFallbacks(locale)\n }\n\n return I18n\n}\n\nexport function useI18n({\n locale: _locale,\n translations: _translations = {},\n}: I18njsConfig): I18njs {\n const translations = R.mergeDeepLeft(_translations, coreTranslations)\n const locale = getValidLocale({ locale: _locale, translations })\n const I18n = createI18njs({\n locale,\n translations,\n })\n return setTranslationFallbacks({ I18n, locale: locale || 'en' })\n}\n\nexport const I18nContext: React.Context<I18njs> = React.createContext(\n createI18njs({\n locale: 'en',\n translations: coreTranslations, // inject our translations\n })\n)\n\nexport function I18nProvider({\n children,\n ...props\n}: I18nConfig & { children: React.ReactNode }) {\n return (\n <I18nContext.Provider value={useI18n(props)}>\n {children}\n </I18nContext.Provider>\n )\n}\n\nexport function useI18nContext() {\n const ctx = React.useContext(I18nContext)\n\n if (!ctx) {\n // TODO investigate a way to do warnings that won't annoy people\n // we probably need to introduce a build system to have nice dev warnings\n // console.warn()\n }\n\n return ctx\n}\n"],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// All and only locales that will receive smartling translations and can be directly fed into <I18nProvider>
|
|
2
|
-
var SUPPORTED_LOCALES = ['de-DE', 'en-AU', 'en-CA', 'en-GB', 'en', 'es-ES', 'es', 'fr-CA', 'fr-FR', 'is-IS', 'ja-JP', 'pt-BR', 'th-TH', 'zh-SG'];
|
|
2
|
+
var SUPPORTED_LOCALES = ['de-DE', 'en-AU', 'en-CA', 'en-GB', 'en', 'es-ES', 'es', 'fr-CA', 'fr-FR', 'is-IS', 'ja-JP', 'pseudo', 'pt-BR', 'th-TH', 'zh-SG'];
|
|
3
3
|
/*
|
|
4
4
|
all locales that should directly use a different locale. Any other unsupported locale will fallback to 'en'
|
|
5
5
|
this should match https://github.com/procore/procore/blob/d0515461046b8d018c8fa8ede1ca8b7aa2fcacf8/config/application.rb#L234C1-L240C7
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getI18nProviderLocale.js","names":["SUPPORTED_LOCALES","OVERWRITE_LOCALE_MAP","getI18nProviderLocale","envLocale","includes"],"sources":["../../src/_hooks/getI18nProviderLocale.ts"],"sourcesContent":["import type { Locale } from './I18n'\n\n// All and only locales that will receive smartling translations and can be directly fed into <I18nProvider>\nconst SUPPORTED_LOCALES: Locale[] = [\n 'de-DE',\n 'en-AU',\n 'en-CA',\n 'en-GB',\n 'en',\n 'es-ES',\n 'es',\n 'fr-CA',\n 'fr-FR',\n 'is-IS',\n 'ja-JP',\n 'pt-BR',\n 'th-TH',\n 'zh-SG',\n]\n/*\n all locales that should directly use a different locale. Any other unsupported locale will fallback to 'en'\n this should match https://github.com/procore/procore/blob/d0515461046b8d018c8fa8ede1ca8b7aa2fcacf8/config/application.rb#L234C1-L240C7\n for any locales that are not listed in SUPPORTED_LOCALES\n*/\nexport const OVERWRITE_LOCALE_MAP: Record<string, Locale> = {\n 'en-AE': 'en-GB',\n 'en-SG': 'en-GB',\n 'es-419': 'es',\n} as const\n\n/**\n * Returns the locale that should be used for the I18nProvider based on the environment locale\n * @param envLocale - the locale from the environment\n * @returns the locale that should be used for the I18nProvider\n */\nexport function getI18nProviderLocale(envLocale: string): Locale {\n if (SUPPORTED_LOCALES.includes(envLocale as Locale)) {\n return envLocale as Locale\n }\n if (OVERWRITE_LOCALE_MAP[envLocale]) {\n return OVERWRITE_LOCALE_MAP[envLocale]\n }\n\n return 'en'\n}\n"],"mappings":"AAEA;AACA,IAAMA,iBAA2B,GAAG,CAClC,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,CACR;AACD;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,oBAA4C,GAAG;EAC1D,OAAO,EAAE,OAAO;EAChB,OAAO,EAAE,OAAO;EAChB,QAAQ,EAAE;AACZ,CAAU;;AAEV;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,qBAAqBA,CAACC,SAAiB,EAAU;EAC/D,IAAIH,iBAAiB,CAACI,QAAQ,CAACD,SAAmB,CAAC,EAAE;IACnD,OAAOA,SAAS;EAClB;EACA,IAAIF,oBAAoB,CAACE,SAAS,CAAC,EAAE;IACnC,OAAOF,oBAAoB,CAACE,SAAS,CAAC;EACxC;EAEA,OAAO,IAAI;AACb"}
|
|
1
|
+
{"version":3,"file":"getI18nProviderLocale.js","names":["SUPPORTED_LOCALES","OVERWRITE_LOCALE_MAP","getI18nProviderLocale","envLocale","includes"],"sources":["../../src/_hooks/getI18nProviderLocale.ts"],"sourcesContent":["import type { Locale } from './I18n'\n\n// All and only locales that will receive smartling translations and can be directly fed into <I18nProvider>\nconst SUPPORTED_LOCALES: Locale[] = [\n 'de-DE',\n 'en-AU',\n 'en-CA',\n 'en-GB',\n 'en',\n 'es-ES',\n 'es',\n 'fr-CA',\n 'fr-FR',\n 'is-IS',\n 'ja-JP',\n 'pseudo',\n 'pt-BR',\n 'th-TH',\n 'zh-SG',\n]\n/*\n all locales that should directly use a different locale. Any other unsupported locale will fallback to 'en'\n this should match https://github.com/procore/procore/blob/d0515461046b8d018c8fa8ede1ca8b7aa2fcacf8/config/application.rb#L234C1-L240C7\n for any locales that are not listed in SUPPORTED_LOCALES\n*/\nexport const OVERWRITE_LOCALE_MAP: Record<string, Locale> = {\n 'en-AE': 'en-GB',\n 'en-SG': 'en-GB',\n 'es-419': 'es',\n} as const\n\n/**\n * Returns the locale that should be used for the I18nProvider based on the environment locale\n * @param envLocale - the locale from the environment\n * @returns the locale that should be used for the I18nProvider\n */\nexport function getI18nProviderLocale(envLocale: string): Locale {\n if (SUPPORTED_LOCALES.includes(envLocale as Locale)) {\n return envLocale as Locale\n }\n if (OVERWRITE_LOCALE_MAP[envLocale]) {\n return OVERWRITE_LOCALE_MAP[envLocale]\n }\n\n return 'en'\n}\n"],"mappings":"AAEA;AACA,IAAMA,iBAA2B,GAAG,CAClC,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,QAAQ,EACR,OAAO,EACP,OAAO,EACP,OAAO,CACR;AACD;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,oBAA4C,GAAG;EAC1D,OAAO,EAAE,OAAO;EAChB,OAAO,EAAE,OAAO;EAChB,QAAQ,EAAE;AACZ,CAAU;;AAEV;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,qBAAqBA,CAACC,SAAiB,EAAU;EAC/D,IAAIH,iBAAiB,CAACI,QAAQ,CAACD,SAAmB,CAAC,EAAE;IACnD,OAAOA,SAAS;EAClB;EACA,IAAIF,oBAAoB,CAACE,SAAS,CAAC,EAAE;IACnC,OAAOF,oBAAoB,CAACE,SAAS,CAAC;EACxC;EAEA,OAAO,IAAI;AACb"}
|
package/dist/_locales/de-DE.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"selectAlbum" : "Album auswählen",
|
|
19
19
|
"selectAnAlbum" : "Album auswählen",
|
|
20
20
|
"selectArea" : "Bereich auswählen",
|
|
21
|
-
"selectAnArea" : "
|
|
21
|
+
"selectAnArea" : "Bereich auswählen",
|
|
22
22
|
"selectDiscipline" : "Gewerk auswählen",
|
|
23
23
|
"selectADiscipline" : "Gewerk auswählen",
|
|
24
24
|
"selectSet" : "Satz auswählen",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"startNewCommunication" : "Um einen neuen Kommunikations-Thread zu diesem Element zu starten, senden Sie eine E-Mail an",
|
|
56
56
|
"emptyStateTitle" : "Senden Sie eine E-Mail, um loszulegen",
|
|
57
57
|
"emptyStateDescription" : "Wenn Sie und Ihr Team E-Mails zu diesem Element senden, können Sie hier darauf verweisen.",
|
|
58
|
-
"reply" : "
|
|
58
|
+
"reply" : "Antworten",
|
|
59
59
|
"cancel" : "Abbrechen",
|
|
60
60
|
"subject" : "Betreff",
|
|
61
61
|
"subjectPlaceholder" : "Betreff hier eingeben"
|
|
@@ -296,6 +296,11 @@
|
|
|
296
296
|
"clear" : "Feld löschen",
|
|
297
297
|
"search" : "Suchen"
|
|
298
298
|
},
|
|
299
|
+
"splitViewCard" : {
|
|
300
|
+
"a11y" : {
|
|
301
|
+
"close" : "Schließen"
|
|
302
|
+
}
|
|
303
|
+
},
|
|
299
304
|
"tabs" : {
|
|
300
305
|
"more" : "Mehr"
|
|
301
306
|
},
|
package/dist/_locales/en-AU.json
CHANGED
package/dist/_locales/en-CA.json
CHANGED
package/dist/_locales/en-GB.json
CHANGED