@strapi/i18n 5.0.0-beta.9 → 5.0.0-rc.1
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/LICENSE +18 -3
- package/dist/_chunks/{SettingsPage-DjWupAff.js → SettingsPage-CwD3sWFS.js} +89 -102
- package/dist/_chunks/SettingsPage-CwD3sWFS.js.map +1 -0
- package/dist/_chunks/{SettingsPage-BWlXRGN7.mjs → SettingsPage-D7g35okk.mjs} +91 -104
- package/dist/_chunks/SettingsPage-D7g35okk.mjs.map +1 -0
- package/dist/_chunks/{en-Kv6y9zPQ.js → en-BsOU9o5z.js} +3 -1
- package/dist/_chunks/en-BsOU9o5z.js.map +1 -0
- package/dist/_chunks/{en-18tWw4P6.mjs → en-CM6Pjfyv.mjs} +3 -1
- package/dist/_chunks/en-CM6Pjfyv.mjs.map +1 -0
- package/dist/_chunks/{index-DVTdCB4M.mjs → index-1KQC6aOV.mjs} +63 -84
- package/dist/_chunks/index-1KQC6aOV.mjs.map +1 -0
- package/dist/_chunks/{index-D--YX2ZY.js → index-5_LTJ7xw.js} +76 -97
- package/dist/_chunks/index-5_LTJ7xw.js.map +1 -0
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/components/EditLocale.d.ts +5 -4
- package/dist/admin/src/contentReleasesHooks/releaseDetailsView.d.ts +9 -5
- package/dist/admin/src/utils/schemas.d.ts +1 -0
- package/package.json +9 -9
- package/dist/_chunks/SettingsPage-BWlXRGN7.mjs.map +0 -1
- package/dist/_chunks/SettingsPage-DjWupAff.js.map +0 -1
- package/dist/_chunks/en-18tWw4P6.mjs.map +0 -1
- package/dist/_chunks/en-Kv6y9zPQ.js.map +0 -1
- package/dist/_chunks/index-D--YX2ZY.js.map +0 -1
- package/dist/_chunks/index-DVTdCB4M.mjs.map +0 -1
- package/dist/admin/src/components/Initializer.d.ts +0 -5
@@ -7,6 +7,7 @@ const designSystem = require("@strapi/design-system");
|
|
7
7
|
const icons = require("@strapi/icons");
|
8
8
|
const reactIntl = require("react-intl");
|
9
9
|
const styledComponents = require("styled-components");
|
10
|
+
const query = require("@reduxjs/toolkit/query");
|
10
11
|
const strapiAdmin = require("@strapi/admin/strapi-admin");
|
11
12
|
const strapiAdmin$1 = require("@strapi/content-manager/strapi-admin");
|
12
13
|
const reactRouterDom = require("react-router-dom");
|
@@ -71,9 +72,7 @@ const CheckboxConfirmation = ({
|
|
71
72
|
};
|
72
73
|
const handleConfirm = () => {
|
73
74
|
onChange({ target: { name, value: false, type: "checkbox" } });
|
74
|
-
setIsOpen(false);
|
75
75
|
};
|
76
|
-
const handleToggle = () => setIsOpen((prev) => !prev);
|
77
76
|
const label = intlLabel.id ? formatMessage(
|
78
77
|
{ id: intlLabel.id, defaultMessage: intlLabel.defaultMessage },
|
79
78
|
{ ...intlLabel.values }
|
@@ -82,35 +81,36 @@ const CheckboxConfirmation = ({
|
|
82
81
|
{ id: description.id, defaultMessage: description.defaultMessage },
|
83
82
|
{ ...description.values }
|
84
83
|
) : "";
|
85
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
84
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Dialog.Root, { open: isOpen, onOpenChange: setIsOpen, children: [
|
86
85
|
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { hint, name, children: [
|
87
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Checkbox, {
|
86
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Checkbox, { onCheckedChange: handleChange, checked: value, children: label }),
|
88
87
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Hint, {})
|
89
88
|
] }),
|
90
|
-
|
91
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.
|
92
|
-
|
89
|
+
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Dialog.Content, { children: [
|
90
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Dialog.Header, { children: formatMessage({
|
91
|
+
id: getTranslation("CheckboxConfirmation.Modal.title"),
|
92
|
+
defaultMessage: "Disable localization"
|
93
|
+
}) }),
|
94
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Dialog.Body, { icon: /* @__PURE__ */ jsxRuntime.jsx(icons.WarningCircle, {}), children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
|
95
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", children: /* @__PURE__ */ jsxRuntime.jsx(TextAlignTypography, { children: formatMessage({
|
93
96
|
id: getTranslation("CheckboxConfirmation.Modal.content"),
|
94
97
|
defaultMessage: "Disabling localization will engender the deletion of all your content but the one associated to your default locale (if existing)."
|
95
98
|
}) }) }),
|
96
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { fontWeight: "semiBold",
|
99
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { fontWeight: "semiBold", children: formatMessage({
|
97
100
|
id: getTranslation("CheckboxConfirmation.Modal.body"),
|
98
101
|
defaultMessage: "Do you want to disable it?"
|
99
102
|
}) }) })
|
100
103
|
] }) }),
|
101
|
-
/* @__PURE__ */ jsxRuntime.
|
102
|
-
designSystem.
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
}) })
|
112
|
-
}
|
113
|
-
)
|
104
|
+
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Dialog.Footer, { children: [
|
105
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Dialog.Cancel, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { variant: "tertiary", children: formatMessage({
|
106
|
+
id: "components.popUpWarning.button.cancel",
|
107
|
+
defaultMessage: "No, cancel"
|
108
|
+
}) }) }),
|
109
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Dialog.Action, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Button, { variant: "danger-light", onClick: handleConfirm, children: formatMessage({
|
110
|
+
id: getTranslation("CheckboxConfirmation.Modal.button-confirm"),
|
111
|
+
defaultMessage: "Yes, disable"
|
112
|
+
}) }) })
|
113
|
+
] })
|
114
114
|
] })
|
115
115
|
] });
|
116
116
|
};
|
@@ -161,7 +161,7 @@ const useI18n = () => {
|
|
161
161
|
model: params.slug
|
162
162
|
},
|
163
163
|
{
|
164
|
-
skip:
|
164
|
+
skip: true
|
165
165
|
}
|
166
166
|
);
|
167
167
|
if (doesPluginOptionsHaveI18nLocalized(schema?.pluginOptions)) {
|
@@ -403,7 +403,7 @@ const LocalePickerAction = ({
|
|
403
403
|
documentId
|
404
404
|
}) => {
|
405
405
|
const { formatMessage } = reactIntl.useIntl();
|
406
|
-
const [{ query }, setQuery] = strapiAdmin.useQueryParams();
|
406
|
+
const [{ query: query2 }, setQuery] = strapiAdmin.useQueryParams();
|
407
407
|
const { hasI18n, canCreate, canRead } = useI18n();
|
408
408
|
const { data: locales = [] } = useGetLocalesQuery();
|
409
409
|
const { schema } = strapiAdmin$1.unstable_useDocument({ model, collectionType, documentId });
|
@@ -411,30 +411,30 @@ const LocalePickerAction = ({
|
|
411
411
|
(value) => {
|
412
412
|
setQuery({
|
413
413
|
plugins: {
|
414
|
-
...
|
414
|
+
...query2.plugins,
|
415
415
|
i18n: {
|
416
416
|
locale: value
|
417
417
|
}
|
418
418
|
}
|
419
419
|
});
|
420
420
|
},
|
421
|
-
[
|
421
|
+
[query2.plugins, setQuery]
|
422
422
|
);
|
423
423
|
React__namespace.useEffect(() => {
|
424
424
|
if (!Array.isArray(locales) || !hasI18n) {
|
425
425
|
return;
|
426
426
|
}
|
427
|
-
const currentDesiredLocale =
|
427
|
+
const currentDesiredLocale = query2.plugins?.i18n?.locale;
|
428
428
|
const doesLocaleExist = locales.find((loc) => loc.code === currentDesiredLocale);
|
429
429
|
const defaultLocale = locales.find((locale) => locale.isDefault);
|
430
430
|
if (!doesLocaleExist && defaultLocale?.code) {
|
431
431
|
handleSelect(defaultLocale.code);
|
432
432
|
}
|
433
|
-
}, [handleSelect, hasI18n, locales,
|
433
|
+
}, [handleSelect, hasI18n, locales, query2.plugins?.i18n?.locale]);
|
434
434
|
if (!hasI18n || !Array.isArray(locales) || locales.length === 0) {
|
435
435
|
return null;
|
436
436
|
}
|
437
|
-
const currentLocale =
|
437
|
+
const currentLocale = query2.plugins?.i18n?.locale || locales.find((loc) => loc.isDefault)?.code;
|
438
438
|
const allCurrentLocales = [
|
439
439
|
{ status: getDocumentStatus(document, meta), locale: currentLocale },
|
440
440
|
...meta?.availableLocales ?? []
|
@@ -556,30 +556,35 @@ const BulkLocalePublishAction = ({
|
|
556
556
|
collectionType
|
557
557
|
}) => {
|
558
558
|
const baseLocale = baseDocument?.locale ?? null;
|
559
|
-
const [{ query }] = strapiAdmin.useQueryParams();
|
560
|
-
const params = React__namespace.useMemo(() => strapiAdmin$1.buildValidParams(query), [query]);
|
561
|
-
const isPublishedTab = query.status === "published";
|
559
|
+
const [{ query: query$1 }] = strapiAdmin.useQueryParams();
|
560
|
+
const params = React__namespace.useMemo(() => strapiAdmin$1.buildValidParams(query$1), [query$1]);
|
561
|
+
const isPublishedTab = query$1.status === "published";
|
562
562
|
const { formatMessage } = reactIntl.useIntl();
|
563
563
|
const { hasI18n, canPublish } = useI18n();
|
564
564
|
const { toggleNotification } = strapiAdmin.useNotification();
|
565
565
|
const { _unstableFormatAPIError: formatAPIError } = strapiAdmin.useAPIErrorHandler();
|
566
566
|
const [selectedRows, setSelectedRows] = React__namespace.useState([]);
|
567
|
-
const [
|
567
|
+
const [isDraftRelationConfirmationOpen, setIsDraftRelationConfirmationOpen] = React__namespace.useState(false);
|
568
568
|
const { publishMany: publishManyAction } = strapiAdmin$1.unstable_useDocumentActions();
|
569
569
|
const {
|
570
570
|
document,
|
571
571
|
meta: documentMeta,
|
572
572
|
schema,
|
573
573
|
validate
|
574
|
-
} = strapiAdmin$1.unstable_useDocument(
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
574
|
+
} = strapiAdmin$1.unstable_useDocument(
|
575
|
+
{
|
576
|
+
model,
|
577
|
+
collectionType,
|
578
|
+
documentId,
|
579
|
+
params: {
|
580
|
+
locale: baseLocale
|
581
|
+
}
|
582
|
+
},
|
583
|
+
{
|
584
|
+
skip: !hasI18n
|
580
585
|
}
|
581
|
-
|
582
|
-
const { data: localesMetadata = [] } = useGetLocalesQuery();
|
586
|
+
);
|
587
|
+
const { data: localesMetadata = [] } = useGetLocalesQuery(hasI18n ? void 0 : query.skipToken);
|
583
588
|
const headers = [
|
584
589
|
{
|
585
590
|
label: formatMessage({
|
@@ -678,7 +683,7 @@ const BulkLocalePublishAction = ({
|
|
678
683
|
};
|
679
684
|
const handleAction = async () => {
|
680
685
|
if (draftRelationsCount > 0) {
|
681
|
-
|
686
|
+
setIsDraftRelationConfirmationOpen(true);
|
682
687
|
} else {
|
683
688
|
await publish();
|
684
689
|
}
|
@@ -687,7 +692,7 @@ const BulkLocalePublishAction = ({
|
|
687
692
|
if (isUnpublish) {
|
688
693
|
console.warn(["I18N"], "Bulk locale unpublish modal not implemented");
|
689
694
|
}
|
690
|
-
if (
|
695
|
+
if (isDraftRelationConfirmationOpen) {
|
691
696
|
return {
|
692
697
|
label: formatMessage({
|
693
698
|
id: "app.components.ConfirmDialog.title",
|
@@ -696,11 +701,11 @@ const BulkLocalePublishAction = ({
|
|
696
701
|
variant: "danger",
|
697
702
|
dialog: {
|
698
703
|
onCancel: () => {
|
699
|
-
|
704
|
+
setIsDraftRelationConfirmationOpen(false);
|
700
705
|
},
|
701
706
|
onConfirm: async () => {
|
702
707
|
await publish();
|
703
|
-
|
708
|
+
setIsDraftRelationConfirmationOpen(false);
|
704
709
|
},
|
705
710
|
type: "dialog",
|
706
711
|
title: formatMessage({
|
@@ -710,20 +715,25 @@ const BulkLocalePublishAction = ({
|
|
710
715
|
content: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "center", gap: 2, children: [
|
711
716
|
/* @__PURE__ */ jsxRuntime.jsx(icons.WarningCircle, { width: "2.4rem", height: "2.4rem", fill: "danger600" }),
|
712
717
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { textAlign: "center", children: formatMessage({
|
713
|
-
id: "
|
714
|
-
defaultMessage: "
|
718
|
+
id: getTranslation("CMEditViewBulkLocale.draft-relation-warning"),
|
719
|
+
defaultMessage: "Some locales are related to draft entries. Publishing them could leave broken links in your app."
|
720
|
+
}) }),
|
721
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { textAlign: "center", children: formatMessage({
|
722
|
+
id: getTranslation("CMEditViewBulkLocale.continue-confirmation"),
|
723
|
+
defaultMessage: "Are you sure you want to continue?"
|
715
724
|
}) })
|
716
725
|
] })
|
717
726
|
}
|
718
727
|
};
|
719
728
|
}
|
729
|
+
const hasPermission = selectedRows.map(({ locale }) => locale).every((locale) => canPublish.includes(locale));
|
720
730
|
return {
|
721
731
|
label: formatMessage({
|
722
732
|
id: getTranslation("CMEditViewBulkLocale.publish-title"),
|
723
733
|
defaultMessage: "Publish Multiple Locales"
|
724
734
|
}),
|
725
735
|
icon: /* @__PURE__ */ jsxRuntime.jsx(icons.ListPlus, {}),
|
726
|
-
disabled: isPublishedTab ||
|
736
|
+
disabled: isPublishedTab || canPublish.length === 0,
|
727
737
|
position: ["panel"],
|
728
738
|
variant: "secondary",
|
729
739
|
dialog: {
|
@@ -755,11 +765,11 @@ const BulkLocalePublishAction = ({
|
|
755
765
|
}
|
756
766
|
);
|
757
767
|
},
|
758
|
-
footer: () => /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "flex-end", children: /* @__PURE__ */ jsxRuntime.jsx(
|
768
|
+
footer: () => /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "flex-end", width: "100%", children: /* @__PURE__ */ jsxRuntime.jsx(
|
759
769
|
designSystem.Button,
|
760
770
|
{
|
761
771
|
loading: isDraftRelationsLoading,
|
762
|
-
disabled: localesToPublish.length === 0,
|
772
|
+
disabled: !hasPermission || localesToPublish.length === 0,
|
763
773
|
variant: "default",
|
764
774
|
onClick: handleAction,
|
765
775
|
children: formatMessage({
|
@@ -827,16 +837,9 @@ const UnpublishModalAdditionalInfo = () => {
|
|
827
837
|
}
|
828
838
|
) });
|
829
839
|
};
|
830
|
-
const Initializer = ({ setPlugin }) => {
|
831
|
-
const setPluginRef = React__namespace.useRef(setPlugin);
|
832
|
-
React__namespace.useEffect(() => {
|
833
|
-
setPluginRef.current(pluginId);
|
834
|
-
}, []);
|
835
|
-
return null;
|
836
|
-
};
|
837
840
|
const LocalePicker = () => {
|
838
841
|
const { formatMessage } = reactIntl.useIntl();
|
839
|
-
const [{ query }, setQuery] = strapiAdmin.useQueryParams();
|
842
|
+
const [{ query: query2 }, setQuery] = strapiAdmin.useQueryParams();
|
840
843
|
const { hasI18n, canRead, canCreate } = useI18n();
|
841
844
|
const { data: locales = [] } = useGetLocalesQuery(void 0, {
|
842
845
|
skip: !hasI18n
|
@@ -846,25 +849,25 @@ const LocalePicker = () => {
|
|
846
849
|
setQuery(
|
847
850
|
{
|
848
851
|
page: 1,
|
849
|
-
plugins: { ...
|
852
|
+
plugins: { ...query2.plugins, i18n: { locale: code } }
|
850
853
|
},
|
851
854
|
"push",
|
852
855
|
replace
|
853
856
|
);
|
854
857
|
},
|
855
|
-
[
|
858
|
+
[query2.plugins, setQuery]
|
856
859
|
);
|
857
860
|
React__namespace.useEffect(() => {
|
858
861
|
if (!Array.isArray(locales) || !hasI18n) {
|
859
862
|
return;
|
860
863
|
}
|
861
|
-
const currentDesiredLocale =
|
864
|
+
const currentDesiredLocale = query2.plugins?.i18n?.locale;
|
862
865
|
const doesLocaleExist = locales.find((loc) => loc.code === currentDesiredLocale);
|
863
866
|
const defaultLocale = locales.find((locale) => locale.isDefault);
|
864
867
|
if (!doesLocaleExist && defaultLocale?.code) {
|
865
868
|
handleChange(defaultLocale.code, true);
|
866
869
|
}
|
867
|
-
}, [hasI18n, handleChange, locales,
|
870
|
+
}, [hasI18n, handleChange, locales, query2.plugins?.i18n?.locale]);
|
868
871
|
if (!hasI18n || !Array.isArray(locales) || locales.length === 0) {
|
869
872
|
return null;
|
870
873
|
}
|
@@ -879,7 +882,7 @@ const LocalePicker = () => {
|
|
879
882
|
id: getTranslation("actions.select-locale"),
|
880
883
|
defaultMessage: "Select locale"
|
881
884
|
}),
|
882
|
-
value:
|
885
|
+
value: query2.plugins?.i18n?.locale || locales.find((locale) => locale.isDefault)?.code,
|
883
886
|
onChange: handleChange,
|
884
887
|
children: displayedLocales.map((locale) => /* @__PURE__ */ jsxRuntime.jsx(designSystem.SingleSelectOption, { value: locale.code, children: locale.name }, locale.id))
|
885
888
|
}
|
@@ -974,13 +977,7 @@ const LocaleListCell = ({
|
|
974
977
|
}
|
975
978
|
});
|
976
979
|
const { locale: language } = reactIntl.useIntl();
|
977
|
-
const [visible, setVisible] = React__namespace.useState(false);
|
978
|
-
const buttonRef = React__namespace.useRef(null);
|
979
980
|
const { data: locales = [] } = useGetLocalesQuery();
|
980
|
-
const handleTogglePopover = (e) => {
|
981
|
-
e.stopPropagation();
|
982
|
-
setVisible((prev) => !prev);
|
983
|
-
};
|
984
981
|
const formatter = designSystem.useCollator(language, {
|
985
982
|
sensitivity: "base"
|
986
983
|
});
|
@@ -1002,8 +999,8 @@ const LocaleListCell = ({
|
|
1002
999
|
}
|
1003
1000
|
return locale.name;
|
1004
1001
|
}).toSorted((a, b) => formatter.compare(a, b));
|
1005
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
1006
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
1002
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Popover.Root, { children: [
|
1003
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Popover.Trigger, { children: /* @__PURE__ */ jsxRuntime.jsx(Button, { type: "button", onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
1007
1004
|
ActionWrapper,
|
1008
1005
|
{
|
1009
1006
|
minWidth: "100%",
|
@@ -1016,17 +1013,8 @@ const LocaleListCell = ({
|
|
1016
1013
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { children: /* @__PURE__ */ jsxRuntime.jsx(icons.CaretDown, {}) })
|
1017
1014
|
]
|
1018
1015
|
}
|
1019
|
-
),
|
1020
|
-
|
1021
|
-
designSystem.Popover,
|
1022
|
-
{
|
1023
|
-
onDismiss: () => setVisible(false),
|
1024
|
-
source: buttonRef,
|
1025
|
-
spacing: 16,
|
1026
|
-
centered: true,
|
1027
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("ul", { children: localesForDocument.map((name) => /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { padding: 3, tag: "li", children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { children: name }) }, name)) })
|
1028
|
-
}
|
1029
|
-
)
|
1016
|
+
) }) }),
|
1017
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Popover.Content, { sideOffset: 16, children: /* @__PURE__ */ jsxRuntime.jsx("ul", { children: localesForDocument.map((name) => /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { padding: 3, tag: "li", children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { children: name }) }, name)) }) })
|
1030
1018
|
] });
|
1031
1019
|
};
|
1032
1020
|
const Button = styledComponents.styled.button`
|
@@ -1088,18 +1076,11 @@ const addColumnToTableHook = ({ displayedHeaders, layout }) => {
|
|
1088
1076
|
const addLocaleToReleasesHook = ({ displayedHeaders = [] }) => {
|
1089
1077
|
return {
|
1090
1078
|
displayedHeaders: [
|
1091
|
-
|
1092
|
-
// ...displayedHeaders,
|
1079
|
+
...displayedHeaders,
|
1093
1080
|
{
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
label: {
|
1098
|
-
id: "content-releases.page.ReleaseDetails.table.header.label.locale",
|
1099
|
-
defaultMessage: "locale"
|
1100
|
-
},
|
1101
|
-
searchable: false,
|
1102
|
-
sortable: false
|
1081
|
+
label: {
|
1082
|
+
id: "content-releases.page.ReleaseDetails.table.header.label.locale",
|
1083
|
+
defaultMessage: "locale"
|
1103
1084
|
},
|
1104
1085
|
name: "locale"
|
1105
1086
|
}
|
@@ -1247,8 +1228,6 @@ const index = {
|
|
1247
1228
|
app.addRBACMiddleware([localeMiddleware]);
|
1248
1229
|
app.registerPlugin({
|
1249
1230
|
id: pluginId,
|
1250
|
-
initializer: Initializer,
|
1251
|
-
isReady: false,
|
1252
1231
|
name: pluginId
|
1253
1232
|
});
|
1254
1233
|
},
|
@@ -1266,7 +1245,7 @@ const index = {
|
|
1266
1245
|
},
|
1267
1246
|
id: "internationalization",
|
1268
1247
|
to: "internationalization",
|
1269
|
-
Component: () => Promise.resolve().then(() => require("./SettingsPage-
|
1248
|
+
Component: () => Promise.resolve().then(() => require("./SettingsPage-CwD3sWFS.js")).then((mod) => ({ default: mod.ProtectedSettingsPage })),
|
1270
1249
|
permissions: PERMISSIONS.accessMain
|
1271
1250
|
});
|
1272
1251
|
const contentManager = app.getPlugin("content-manager");
|
@@ -1383,7 +1362,7 @@ const index = {
|
|
1383
1362
|
async registerTrads({ locales }) {
|
1384
1363
|
const importedTrads = await Promise.all(
|
1385
1364
|
locales.map((locale) => {
|
1386
|
-
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/de.json": () => Promise.resolve().then(() => require("./de-DtWiGdHl.js")), "./translations/dk.json": () => Promise.resolve().then(() => require("./dk-D8C-casx.js")), "./translations/en.json": () => Promise.resolve().then(() => require("./en-
|
1365
|
+
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/de.json": () => Promise.resolve().then(() => require("./de-DtWiGdHl.js")), "./translations/dk.json": () => Promise.resolve().then(() => require("./dk-D8C-casx.js")), "./translations/en.json": () => Promise.resolve().then(() => require("./en-BsOU9o5z.js")), "./translations/es.json": () => Promise.resolve().then(() => require("./es-DS-XFGSw.js")), "./translations/fr.json": () => Promise.resolve().then(() => require("./fr-BTjekDpq.js")), "./translations/ko.json": () => Promise.resolve().then(() => require("./ko-DmcGUBQ3.js")), "./translations/pl.json": () => Promise.resolve().then(() => require("./pl-Cn5RYonZ.js")), "./translations/ru.json": () => Promise.resolve().then(() => require("./ru-BMBgVL3s.js")), "./translations/tr.json": () => Promise.resolve().then(() => require("./tr-CarUU76c.js")), "./translations/zh-Hans.json": () => Promise.resolve().then(() => require("./zh-Hans-DSHIXAa3.js")), "./translations/zh.json": () => Promise.resolve().then(() => require("./zh-CukOviB0.js")) }), `./translations/${locale}.json`).then(({ default: data }) => {
|
1387
1366
|
return {
|
1388
1367
|
data: prefixPluginTranslations(data, pluginId),
|
1389
1368
|
locale
|
@@ -1407,4 +1386,4 @@ exports.useDeleteLocaleMutation = useDeleteLocaleMutation;
|
|
1407
1386
|
exports.useGetDefaultLocalesQuery = useGetDefaultLocalesQuery;
|
1408
1387
|
exports.useGetLocalesQuery = useGetLocalesQuery;
|
1409
1388
|
exports.useUpdateLocaleMutation = useUpdateLocaleMutation;
|
1410
|
-
//# sourceMappingURL=index-
|
1389
|
+
//# sourceMappingURL=index-5_LTJ7xw.js.map
|