@strapi/i18n 5.33.0 → 5.33.2
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/admin/contentManagerHooks/editView.js +26 -42
- package/dist/admin/contentManagerHooks/editView.js.map +1 -1
- package/dist/admin/contentManagerHooks/editView.mjs +26 -23
- package/dist/admin/contentManagerHooks/editView.mjs.map +1 -1
- package/dist/admin/src/contentManagerHooks/tests/EditView.test.d.ts +1 -0
- package/dist/server/constants/iso-locales.json.js +44 -0
- package/dist/server/constants/iso-locales.json.js.map +1 -1
- package/dist/server/constants/iso-locales.json.mjs +44 -0
- package/dist/server/constants/iso-locales.json.mjs.map +1 -1
- package/package.json +7 -7
|
@@ -1,32 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var React = require('react');
|
|
5
4
|
var designSystem = require('@strapi/design-system');
|
|
6
5
|
var icons = require('@strapi/icons');
|
|
7
6
|
var reactIntl = require('react-intl');
|
|
8
7
|
var styledComponents = require('styled-components');
|
|
9
8
|
var getTranslation = require('../utils/getTranslation.js');
|
|
10
9
|
|
|
11
|
-
function _interopNamespaceDefault(e) {
|
|
12
|
-
var n = Object.create(null);
|
|
13
|
-
if (e) {
|
|
14
|
-
Object.keys(e).forEach(function (k) {
|
|
15
|
-
if (k !== 'default') {
|
|
16
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () { return e[k]; }
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
n.default = e;
|
|
25
|
-
return Object.freeze(n);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
29
|
-
|
|
30
10
|
const mutateEditViewHook = ({ layout })=>{
|
|
31
11
|
// If i18n isn't explicitly enabled on the content type, then no field can be localized
|
|
32
12
|
if (!('i18n' in layout.options) || typeof layout.options.i18n === 'object' && layout.options.i18n !== null && 'localized' in layout.options.i18n && !layout.options.i18n.localized) {
|
|
@@ -34,12 +14,13 @@ const mutateEditViewHook = ({ layout })=>{
|
|
|
34
14
|
layout
|
|
35
15
|
};
|
|
36
16
|
}
|
|
17
|
+
const decorateField = (field)=>addLabelActionToField(field, layout);
|
|
37
18
|
const components = Object.entries(layout.components).reduce((acc, [key, componentLayout])=>{
|
|
38
19
|
return {
|
|
39
20
|
...acc,
|
|
40
21
|
[key]: {
|
|
41
22
|
...componentLayout,
|
|
42
|
-
layout: componentLayout.layout.map((row)=>row.map(
|
|
23
|
+
layout: componentLayout.layout.map((row)=>row.map(decorateField))
|
|
43
24
|
}
|
|
44
25
|
};
|
|
45
26
|
}, {});
|
|
@@ -47,36 +28,39 @@ const mutateEditViewHook = ({ layout })=>{
|
|
|
47
28
|
layout: {
|
|
48
29
|
...layout,
|
|
49
30
|
components,
|
|
50
|
-
layout: layout.layout.map((panel)=>panel.map((row)=>row.map(
|
|
31
|
+
layout: layout.layout.map((panel)=>panel.map((row)=>row.map(decorateField)))
|
|
51
32
|
}
|
|
52
33
|
};
|
|
53
34
|
};
|
|
54
|
-
const
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
35
|
+
const isFieldLocalized = (attribute, layout)=>{
|
|
36
|
+
const contentTypeLocalized = !!layout.options?.i18n && !!layout.options.i18n.localized;
|
|
37
|
+
if (!contentTypeLocalized) {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
const pluginOptions = attribute && typeof attribute === 'object' && 'pluginOptions' in attribute ? attribute.pluginOptions : undefined;
|
|
41
|
+
return pluginOptions?.i18n?.localized === true;
|
|
42
|
+
};
|
|
43
|
+
const addLabelActionToField = (field, layout)=>{
|
|
44
|
+
const localized = isFieldLocalized(field.attribute, layout);
|
|
45
|
+
if (!localized) {
|
|
46
|
+
return field;
|
|
47
|
+
}
|
|
48
|
+
const title = {
|
|
49
|
+
id: getTranslation.getTranslation('Field.localized'),
|
|
50
|
+
defaultMessage: 'This value is unique for the selected locale'
|
|
62
51
|
};
|
|
63
52
|
return {
|
|
64
53
|
...field,
|
|
65
|
-
labelAction:
|
|
66
|
-
|
|
67
|
-
})
|
|
54
|
+
labelAction: /*#__PURE__*/ jsxRuntime.jsx(LabelAction, {
|
|
55
|
+
title: title
|
|
56
|
+
})
|
|
68
57
|
};
|
|
69
58
|
};
|
|
70
|
-
const
|
|
71
|
-
if (!pluginOpts) {
|
|
72
|
-
return false;
|
|
73
|
-
}
|
|
74
|
-
return 'i18n' in pluginOpts && typeof pluginOpts.i18n === 'object' && pluginOpts.i18n !== null && 'localized' in pluginOpts.i18n;
|
|
75
|
-
};
|
|
76
|
-
const LabelAction = ({ title, icon })=>{
|
|
59
|
+
const LabelAction = ({ title })=>{
|
|
77
60
|
const { formatMessage } = reactIntl.useIntl();
|
|
78
61
|
return /*#__PURE__*/ jsxRuntime.jsxs(Span, {
|
|
79
62
|
tag: "span",
|
|
63
|
+
title: title,
|
|
80
64
|
children: [
|
|
81
65
|
/*#__PURE__*/ jsxRuntime.jsx(designSystem.VisuallyHidden, {
|
|
82
66
|
tag: "span",
|
|
@@ -84,8 +68,8 @@ const LabelAction = ({ title, icon })=>{
|
|
|
84
68
|
}),
|
|
85
69
|
/*#__PURE__*/ jsxRuntime.jsx(designSystem.Tooltip, {
|
|
86
70
|
label: formatMessage(title),
|
|
87
|
-
children: /*#__PURE__*/
|
|
88
|
-
|
|
71
|
+
children: /*#__PURE__*/ jsxRuntime.jsx(icons.Earth, {
|
|
72
|
+
"aria-hidden": true,
|
|
89
73
|
focusable: false
|
|
90
74
|
})
|
|
91
75
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editView.js","sources":["../../../admin/src/contentManagerHooks/editView.tsx"],"sourcesContent":["/* eslint-disable check-file/filename-naming-convention */\nimport
|
|
1
|
+
{"version":3,"file":"editView.js","sources":["../../../admin/src/contentManagerHooks/editView.tsx"],"sourcesContent":["/* eslint-disable check-file/filename-naming-convention */\nimport { Flex, Tooltip, VisuallyHidden } from '@strapi/design-system';\nimport { Earth } from '@strapi/icons';\nimport { MessageDescriptor, useIntl } from 'react-intl';\nimport { styled } from 'styled-components';\n\nimport { getTranslation } from '../utils/getTranslation';\n\nimport type { EditFieldLayout, EditLayout } from '@strapi/content-manager/strapi-admin';\ninterface MutateEditViewArgs {\n layout: EditLayout;\n}\n\nconst mutateEditViewHook = ({ layout }: MutateEditViewArgs): MutateEditViewArgs => {\n // If i18n isn't explicitly enabled on the content type, then no field can be localized\n if (\n !('i18n' in layout.options) ||\n (typeof layout.options.i18n === 'object' &&\n layout.options.i18n !== null &&\n 'localized' in layout.options.i18n &&\n !layout.options.i18n.localized)\n ) {\n return { layout };\n }\n\n const decorateField = (field: EditFieldLayout) => addLabelActionToField(field, layout);\n\n const components = Object.entries(layout.components).reduce<EditLayout['components']>(\n (acc, [key, componentLayout]) => {\n return {\n ...acc,\n [key]: {\n ...componentLayout,\n layout: componentLayout.layout.map((row) => row.map(decorateField)),\n },\n };\n },\n {}\n );\n\n return {\n layout: {\n ...layout,\n components,\n layout: layout.layout.map((panel) => panel.map((row) => row.map(decorateField))),\n },\n } satisfies Pick<MutateEditViewArgs, 'layout'>;\n};\n\nconst isFieldLocalized = (attribute: EditFieldLayout['attribute'], layout: EditLayout) => {\n const contentTypeLocalized =\n !!(layout.options as any)?.i18n && !!(layout.options as any).i18n.localized;\n\n if (!contentTypeLocalized) {\n return false;\n }\n\n const pluginOptions =\n attribute && typeof attribute === 'object' && 'pluginOptions' in (attribute as object)\n ? (attribute as { pluginOptions?: { i18n?: { localized?: boolean } } }).pluginOptions\n : undefined;\n\n return pluginOptions?.i18n?.localized === true;\n};\n\nconst addLabelActionToField = (field: EditFieldLayout, layout: EditLayout) => {\n const localized = isFieldLocalized(field.attribute, layout);\n\n if (!localized) {\n return field;\n }\n\n const title: MessageDescriptor = {\n id: getTranslation('Field.localized'),\n defaultMessage: 'This value is unique for the selected locale',\n };\n\n return {\n ...field,\n labelAction: <LabelAction title={title} />,\n };\n};\n\n/* -------------------------------------------------------------------------------------------------\n * LabelAction\n * -----------------------------------------------------------------------------------------------*/\n\ninterface LabelActionProps {\n title: MessageDescriptor;\n}\n\nconst LabelAction = ({ title }: LabelActionProps) => {\n const { formatMessage } = useIntl();\n\n return (\n <Span tag=\"span\" title={title}>\n <VisuallyHidden tag=\"span\">{formatMessage(title)}</VisuallyHidden>\n <Tooltip label={formatMessage(title)}>\n <Earth aria-hidden focusable={false} />\n </Tooltip>\n </Span>\n );\n};\n\nconst Span = styled(Flex)`\n svg {\n width: 12px;\n height: 12px;\n\n fill: ${({ theme }) => theme.colors.neutral500};\n\n path {\n fill: ${({ theme }) => theme.colors.neutral500};\n }\n }\n`;\n\nexport { mutateEditViewHook };\n"],"names":["mutateEditViewHook","layout","options","i18n","localized","decorateField","field","addLabelActionToField","components","Object","entries","reduce","acc","key","componentLayout","map","row","panel","isFieldLocalized","attribute","contentTypeLocalized","pluginOptions","undefined","title","id","getTranslation","defaultMessage","labelAction","_jsx","LabelAction","formatMessage","useIntl","_jsxs","Span","tag","VisuallyHidden","Tooltip","label","Earth","aria-hidden","focusable","styled","Flex","theme","colors","neutral500"],"mappings":";;;;;;;;;AAaA,MAAMA,kBAAqB,GAAA,CAAC,EAAEC,MAAM,EAAsB,GAAA;;AAExD,IAAA,IACE,EAAE,MAAUA,IAAAA,MAAAA,CAAOC,OAAO,CAAD,IACxB,OAAOD,MAAAA,CAAOC,OAAO,CAACC,IAAI,KAAK,YAC9BF,MAAOC,CAAAA,OAAO,CAACC,IAAI,KAAK,IAAA,IACxB,WAAeF,IAAAA,MAAAA,CAAOC,OAAO,CAACC,IAAI,IAClC,CAACF,OAAOC,OAAO,CAACC,IA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AAM,CAACC,UAAU,CAAC;;;YAGvC,EAAE,CAAC,EAAEF,KAAK,EAAE,GAAKA,KAAMC,CAAAA,MAAM,CAACC,UAAU,CAAC;;;AAGrD,CAAC;;;;"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
2
|
import { Flex, VisuallyHidden, Tooltip } from '@strapi/design-system';
|
|
4
3
|
import { Earth } from '@strapi/icons';
|
|
5
4
|
import { useIntl } from 'react-intl';
|
|
@@ -13,12 +12,13 @@ const mutateEditViewHook = ({ layout })=>{
|
|
|
13
12
|
layout
|
|
14
13
|
};
|
|
15
14
|
}
|
|
15
|
+
const decorateField = (field)=>addLabelActionToField(field, layout);
|
|
16
16
|
const components = Object.entries(layout.components).reduce((acc, [key, componentLayout])=>{
|
|
17
17
|
return {
|
|
18
18
|
...acc,
|
|
19
19
|
[key]: {
|
|
20
20
|
...componentLayout,
|
|
21
|
-
layout: componentLayout.layout.map((row)=>row.map(
|
|
21
|
+
layout: componentLayout.layout.map((row)=>row.map(decorateField))
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
}, {});
|
|
@@ -26,36 +26,39 @@ const mutateEditViewHook = ({ layout })=>{
|
|
|
26
26
|
layout: {
|
|
27
27
|
...layout,
|
|
28
28
|
components,
|
|
29
|
-
layout: layout.layout.map((panel)=>panel.map((row)=>row.map(
|
|
29
|
+
layout: layout.layout.map((panel)=>panel.map((row)=>row.map(decorateField)))
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
const isFieldLocalized = (attribute, layout)=>{
|
|
34
|
+
const contentTypeLocalized = !!layout.options?.i18n && !!layout.options.i18n.localized;
|
|
35
|
+
if (!contentTypeLocalized) {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
const pluginOptions = attribute && typeof attribute === 'object' && 'pluginOptions' in attribute ? attribute.pluginOptions : undefined;
|
|
39
|
+
return pluginOptions?.i18n?.localized === true;
|
|
40
|
+
};
|
|
41
|
+
const addLabelActionToField = (field, layout)=>{
|
|
42
|
+
const localized = isFieldLocalized(field.attribute, layout);
|
|
43
|
+
if (!localized) {
|
|
44
|
+
return field;
|
|
45
|
+
}
|
|
46
|
+
const title = {
|
|
47
|
+
id: getTranslation('Field.localized'),
|
|
48
|
+
defaultMessage: 'This value is unique for the selected locale'
|
|
41
49
|
};
|
|
42
50
|
return {
|
|
43
51
|
...field,
|
|
44
|
-
labelAction:
|
|
45
|
-
|
|
46
|
-
})
|
|
52
|
+
labelAction: /*#__PURE__*/ jsx(LabelAction, {
|
|
53
|
+
title: title
|
|
54
|
+
})
|
|
47
55
|
};
|
|
48
56
|
};
|
|
49
|
-
const
|
|
50
|
-
if (!pluginOpts) {
|
|
51
|
-
return false;
|
|
52
|
-
}
|
|
53
|
-
return 'i18n' in pluginOpts && typeof pluginOpts.i18n === 'object' && pluginOpts.i18n !== null && 'localized' in pluginOpts.i18n;
|
|
54
|
-
};
|
|
55
|
-
const LabelAction = ({ title, icon })=>{
|
|
57
|
+
const LabelAction = ({ title })=>{
|
|
56
58
|
const { formatMessage } = useIntl();
|
|
57
59
|
return /*#__PURE__*/ jsxs(Span, {
|
|
58
60
|
tag: "span",
|
|
61
|
+
title: title,
|
|
59
62
|
children: [
|
|
60
63
|
/*#__PURE__*/ jsx(VisuallyHidden, {
|
|
61
64
|
tag: "span",
|
|
@@ -63,8 +66,8 @@ const LabelAction = ({ title, icon })=>{
|
|
|
63
66
|
}),
|
|
64
67
|
/*#__PURE__*/ jsx(Tooltip, {
|
|
65
68
|
label: formatMessage(title),
|
|
66
|
-
children: /*#__PURE__*/
|
|
67
|
-
|
|
69
|
+
children: /*#__PURE__*/ jsx(Earth, {
|
|
70
|
+
"aria-hidden": true,
|
|
68
71
|
focusable: false
|
|
69
72
|
})
|
|
70
73
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editView.mjs","sources":["../../../admin/src/contentManagerHooks/editView.tsx"],"sourcesContent":["/* eslint-disable check-file/filename-naming-convention */\nimport
|
|
1
|
+
{"version":3,"file":"editView.mjs","sources":["../../../admin/src/contentManagerHooks/editView.tsx"],"sourcesContent":["/* eslint-disable check-file/filename-naming-convention */\nimport { Flex, Tooltip, VisuallyHidden } from '@strapi/design-system';\nimport { Earth } from '@strapi/icons';\nimport { MessageDescriptor, useIntl } from 'react-intl';\nimport { styled } from 'styled-components';\n\nimport { getTranslation } from '../utils/getTranslation';\n\nimport type { EditFieldLayout, EditLayout } from '@strapi/content-manager/strapi-admin';\ninterface MutateEditViewArgs {\n layout: EditLayout;\n}\n\nconst mutateEditViewHook = ({ layout }: MutateEditViewArgs): MutateEditViewArgs => {\n // If i18n isn't explicitly enabled on the content type, then no field can be localized\n if (\n !('i18n' in layout.options) ||\n (typeof layout.options.i18n === 'object' &&\n layout.options.i18n !== null &&\n 'localized' in layout.options.i18n &&\n !layout.options.i18n.localized)\n ) {\n return { layout };\n }\n\n const decorateField = (field: EditFieldLayout) => addLabelActionToField(field, layout);\n\n const components = Object.entries(layout.components).reduce<EditLayout['components']>(\n (acc, [key, componentLayout]) => {\n return {\n ...acc,\n [key]: {\n ...componentLayout,\n layout: componentLayout.layout.map((row) => row.map(decorateField)),\n },\n };\n },\n {}\n );\n\n return {\n layout: {\n ...layout,\n components,\n layout: layout.layout.map((panel) => panel.map((row) => row.map(decorateField))),\n },\n } satisfies Pick<MutateEditViewArgs, 'layout'>;\n};\n\nconst isFieldLocalized = (attribute: EditFieldLayout['attribute'], layout: EditLayout) => {\n const contentTypeLocalized =\n !!(layout.options as any)?.i18n && !!(layout.options as any).i18n.localized;\n\n if (!contentTypeLocalized) {\n return false;\n }\n\n const pluginOptions =\n attribute && typeof attribute === 'object' && 'pluginOptions' in (attribute as object)\n ? (attribute as { pluginOptions?: { i18n?: { localized?: boolean } } }).pluginOptions\n : undefined;\n\n return pluginOptions?.i18n?.localized === true;\n};\n\nconst addLabelActionToField = (field: EditFieldLayout, layout: EditLayout) => {\n const localized = isFieldLocalized(field.attribute, layout);\n\n if (!localized) {\n return field;\n }\n\n const title: MessageDescriptor = {\n id: getTranslation('Field.localized'),\n defaultMessage: 'This value is unique for the selected locale',\n };\n\n return {\n ...field,\n labelAction: <LabelAction title={title} />,\n };\n};\n\n/* -------------------------------------------------------------------------------------------------\n * LabelAction\n * -----------------------------------------------------------------------------------------------*/\n\ninterface LabelActionProps {\n title: MessageDescriptor;\n}\n\nconst LabelAction = ({ title }: LabelActionProps) => {\n const { formatMessage } = useIntl();\n\n return (\n <Span tag=\"span\" title={title}>\n <VisuallyHidden tag=\"span\">{formatMessage(title)}</VisuallyHidden>\n <Tooltip label={formatMessage(title)}>\n <Earth aria-hidden focusable={false} />\n </Tooltip>\n </Span>\n );\n};\n\nconst Span = styled(Flex)`\n svg {\n width: 12px;\n height: 12px;\n\n fill: ${({ theme }) => theme.colors.neutral500};\n\n path {\n fill: ${({ theme }) => theme.colors.neutral500};\n }\n }\n`;\n\nexport { mutateEditViewHook };\n"],"names":["mutateEditViewHook","layout","options","i18n","localized","decorateField","field","addLabelActionToField","components","Object","entries","reduce","acc","key","componentLayout","map","row","panel","isFieldLocalized","attribute","contentTypeLocalized","pluginOptions","undefined","title","id","getTranslation","defaultMessage","labelAction","_jsx","LabelAction","formatMessage","useIntl","_jsxs","Span","tag","VisuallyHidden","Tooltip","label","Earth","aria-hidden","focusable","styled","Flex","theme","colors","neutral500"],"mappings":";;;;;;;AAaA,MAAMA,kBAAqB,GAAA,CAAC,EAAEC,MAAM,EAAsB,GAAA;;AAExD,IAAA,IACE,EAAE,MAAUA,IAAAA,MAAAA,CAAOC,OAAO,CAAD,IACxB,OAAOD,MAAAA,CAAOC,OAAO,CAACC,IAAI,KAAK,YAC9BF,MAAOC,CAAAA,OAA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AAA,GAAOQ,MAAOC,CAAAA,IAAAA,CAAK;;;;;UAKf,EAAE,CAAC,EAAEC,KAAK,EAAE,GAAKA,KAAMC,CAAAA,MAAM,CAACC,UAAU,CAAC;;;YAGvC,EAAE,CAAC,EAAEF,KAAK,EAAE,GAAKA,KAAMC,CAAAA,MAAM,CAACC,UAAU,CAAC;;;AAGrD,CAAC;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -265,6 +265,22 @@ var isoLocales = [
|
|
|
265
265
|
code: "bs-BA",
|
|
266
266
|
name: "Bosnian (Bosnia and Herzegovina) (bs-BA)"
|
|
267
267
|
},
|
|
268
|
+
{
|
|
269
|
+
code: "bs-Cyrl",
|
|
270
|
+
name: "Bosnian (Cyrillic)"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
code: "bs-Cyrl-BA",
|
|
274
|
+
name: "Bosnian (Cyrillic, Bosnia and Herzegovina)"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
code: "bs-Latn",
|
|
278
|
+
name: "Bosnian (Latin)"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
code: "bs-Latn-BA",
|
|
282
|
+
name: "Bosnian (Latin, Bosnia and Herzegovina)"
|
|
283
|
+
},
|
|
268
284
|
{
|
|
269
285
|
code: "br",
|
|
270
286
|
name: "Breton (br)"
|
|
@@ -329,6 +345,10 @@ var isoLocales = [
|
|
|
329
345
|
code: "chr-US",
|
|
330
346
|
name: "Cherokee (United States) (chr-US)"
|
|
331
347
|
},
|
|
348
|
+
{
|
|
349
|
+
code: "ny",
|
|
350
|
+
name: "Chichewa"
|
|
351
|
+
},
|
|
332
352
|
{
|
|
333
353
|
code: "cgg",
|
|
334
354
|
name: "Chiga (cgg)"
|
|
@@ -421,6 +441,10 @@ var isoLocales = [
|
|
|
421
441
|
code: "da-DK",
|
|
422
442
|
name: "Danish (Denmark) (da-DK)"
|
|
423
443
|
},
|
|
444
|
+
{
|
|
445
|
+
code: "dwr",
|
|
446
|
+
name: "Dawro"
|
|
447
|
+
},
|
|
424
448
|
{
|
|
425
449
|
code: "dua",
|
|
426
450
|
name: "Duala (dua)"
|
|
@@ -665,6 +689,10 @@ var isoLocales = [
|
|
|
665
689
|
code: "en-MG",
|
|
666
690
|
name: "English (Madagascar) (en-MG)"
|
|
667
691
|
},
|
|
692
|
+
{
|
|
693
|
+
code: "en-MM",
|
|
694
|
+
name: "English (Myanmar) (en-MM)"
|
|
695
|
+
},
|
|
668
696
|
{
|
|
669
697
|
code: "en-MW",
|
|
670
698
|
name: "English (Malawi) (en-MW)"
|
|
@@ -1109,6 +1137,10 @@ var isoLocales = [
|
|
|
1109
1137
|
code: "gl-ES",
|
|
1110
1138
|
name: "Galician (Spain) (gl-ES)"
|
|
1111
1139
|
},
|
|
1140
|
+
{
|
|
1141
|
+
code: "gmv",
|
|
1142
|
+
name: "Gamo"
|
|
1143
|
+
},
|
|
1112
1144
|
{
|
|
1113
1145
|
code: "lao",
|
|
1114
1146
|
name: "Laotian (Laos) (lao)"
|
|
@@ -1157,6 +1189,10 @@ var isoLocales = [
|
|
|
1157
1189
|
code: "de-CH",
|
|
1158
1190
|
name: "German (Switzerland) (de-CH)"
|
|
1159
1191
|
},
|
|
1192
|
+
{
|
|
1193
|
+
code: "gof",
|
|
1194
|
+
name: "Gofa"
|
|
1195
|
+
},
|
|
1160
1196
|
{
|
|
1161
1197
|
code: "el",
|
|
1162
1198
|
name: "Greek (el)"
|
|
@@ -1205,6 +1241,10 @@ var isoLocales = [
|
|
|
1205
1241
|
code: "ha-Latn-NG",
|
|
1206
1242
|
name: "Hausa (Latin, Nigeria) (ha-Latn-NG)"
|
|
1207
1243
|
},
|
|
1244
|
+
{
|
|
1245
|
+
code: "ht",
|
|
1246
|
+
name: "Haitian"
|
|
1247
|
+
},
|
|
1208
1248
|
{
|
|
1209
1249
|
code: "haw",
|
|
1210
1250
|
name: "Hawaiian (haw)"
|
|
@@ -1617,6 +1657,10 @@ var isoLocales = [
|
|
|
1617
1657
|
code: "mn",
|
|
1618
1658
|
name: "Mongolian (mn)"
|
|
1619
1659
|
},
|
|
1660
|
+
{
|
|
1661
|
+
code: "mn-Cyrl",
|
|
1662
|
+
name: "Mongolian (Cyrillic)"
|
|
1663
|
+
},
|
|
1620
1664
|
{
|
|
1621
1665
|
code: "mfe",
|
|
1622
1666
|
name: "Morisyen (mfe)"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iso-locales.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"iso-locales.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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nian (Cyrillic, Bosnia and Herzegovina)"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
code: "bs-Latn",
|
|
276
|
+
name: "Bosnian (Latin)"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
code: "bs-Latn-BA",
|
|
280
|
+
name: "Bosnian (Latin, Bosnia and Herzegovina)"
|
|
281
|
+
},
|
|
266
282
|
{
|
|
267
283
|
code: "br",
|
|
268
284
|
name: "Breton (br)"
|
|
@@ -327,6 +343,10 @@ var isoLocales = [
|
|
|
327
343
|
code: "chr-US",
|
|
328
344
|
name: "Cherokee (United States) (chr-US)"
|
|
329
345
|
},
|
|
346
|
+
{
|
|
347
|
+
code: "ny",
|
|
348
|
+
name: "Chichewa"
|
|
349
|
+
},
|
|
330
350
|
{
|
|
331
351
|
code: "cgg",
|
|
332
352
|
name: "Chiga (cgg)"
|
|
@@ -419,6 +439,10 @@ var isoLocales = [
|
|
|
419
439
|
code: "da-DK",
|
|
420
440
|
name: "Danish (Denmark) (da-DK)"
|
|
421
441
|
},
|
|
442
|
+
{
|
|
443
|
+
code: "dwr",
|
|
444
|
+
name: "Dawro"
|
|
445
|
+
},
|
|
422
446
|
{
|
|
423
447
|
code: "dua",
|
|
424
448
|
name: "Duala (dua)"
|
|
@@ -663,6 +687,10 @@ var isoLocales = [
|
|
|
663
687
|
code: "en-MG",
|
|
664
688
|
name: "English (Madagascar) (en-MG)"
|
|
665
689
|
},
|
|
690
|
+
{
|
|
691
|
+
code: "en-MM",
|
|
692
|
+
name: "English (Myanmar) (en-MM)"
|
|
693
|
+
},
|
|
666
694
|
{
|
|
667
695
|
code: "en-MW",
|
|
668
696
|
name: "English (Malawi) (en-MW)"
|
|
@@ -1107,6 +1135,10 @@ var isoLocales = [
|
|
|
1107
1135
|
code: "gl-ES",
|
|
1108
1136
|
name: "Galician (Spain) (gl-ES)"
|
|
1109
1137
|
},
|
|
1138
|
+
{
|
|
1139
|
+
code: "gmv",
|
|
1140
|
+
name: "Gamo"
|
|
1141
|
+
},
|
|
1110
1142
|
{
|
|
1111
1143
|
code: "lao",
|
|
1112
1144
|
name: "Laotian (Laos) (lao)"
|
|
@@ -1155,6 +1187,10 @@ var isoLocales = [
|
|
|
1155
1187
|
code: "de-CH",
|
|
1156
1188
|
name: "German (Switzerland) (de-CH)"
|
|
1157
1189
|
},
|
|
1190
|
+
{
|
|
1191
|
+
code: "gof",
|
|
1192
|
+
name: "Gofa"
|
|
1193
|
+
},
|
|
1158
1194
|
{
|
|
1159
1195
|
code: "el",
|
|
1160
1196
|
name: "Greek (el)"
|
|
@@ -1203,6 +1239,10 @@ var isoLocales = [
|
|
|
1203
1239
|
code: "ha-Latn-NG",
|
|
1204
1240
|
name: "Hausa (Latin, Nigeria) (ha-Latn-NG)"
|
|
1205
1241
|
},
|
|
1242
|
+
{
|
|
1243
|
+
code: "ht",
|
|
1244
|
+
name: "Haitian"
|
|
1245
|
+
},
|
|
1206
1246
|
{
|
|
1207
1247
|
code: "haw",
|
|
1208
1248
|
name: "Hawaiian (haw)"
|
|
@@ -1615,6 +1655,10 @@ var isoLocales = [
|
|
|
1615
1655
|
code: "mn",
|
|
1616
1656
|
name: "Mongolian (mn)"
|
|
1617
1657
|
},
|
|
1658
|
+
{
|
|
1659
|
+
code: "mn-Cyrl",
|
|
1660
|
+
name: "Mongolian (Cyrillic)"
|
|
1661
|
+
},
|
|
1618
1662
|
{
|
|
1619
1663
|
code: "mfe",
|
|
1620
1664
|
name: "Morisyen (mfe)"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iso-locales.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"iso-locales.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/i18n",
|
|
3
|
-
"version": "5.33.
|
|
3
|
+
"version": "5.33.2",
|
|
4
4
|
"description": "Create read and update content in different languages, both from the Admin Panel and from the API",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@reduxjs/toolkit": "1.9.7",
|
|
60
60
|
"@strapi/design-system": "2.0.1",
|
|
61
61
|
"@strapi/icons": "2.0.1",
|
|
62
|
-
"@strapi/utils": "5.33.
|
|
62
|
+
"@strapi/utils": "5.33.2",
|
|
63
63
|
"lodash": "4.17.21",
|
|
64
64
|
"qs": "6.11.1",
|
|
65
65
|
"react-intl": "6.6.2",
|
|
@@ -68,11 +68,11 @@
|
|
|
68
68
|
"zod": "3.25.67"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@strapi/admin": "5.33.
|
|
72
|
-
"@strapi/admin-test-utils": "5.33.
|
|
73
|
-
"@strapi/content-manager": "5.33.
|
|
74
|
-
"@strapi/database": "5.33.
|
|
75
|
-
"@strapi/types": "5.33.
|
|
71
|
+
"@strapi/admin": "5.33.2",
|
|
72
|
+
"@strapi/admin-test-utils": "5.33.2",
|
|
73
|
+
"@strapi/content-manager": "5.33.2",
|
|
74
|
+
"@strapi/database": "5.33.2",
|
|
75
|
+
"@strapi/types": "5.33.2",
|
|
76
76
|
"@testing-library/react": "16.3.0",
|
|
77
77
|
"@testing-library/user-event": "14.6.1",
|
|
78
78
|
"koa": "2.16.1",
|