@strapi/content-type-builder 5.42.1 → 5.43.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/admin/components/AIChat/hooks/useAIFetch.js +1 -1
- package/dist/admin/components/AIChat/hooks/useAIFetch.js.map +1 -1
- package/dist/admin/components/AIChat/hooks/useAIFetch.mjs +2 -2
- package/dist/admin/components/AIChat/hooks/useAIFetch.mjs.map +1 -1
- package/dist/admin/translations/nl.json.js +100 -38
- package/dist/admin/translations/nl.json.js.map +1 -1
- package/dist/admin/translations/nl.json.mjs +100 -38
- package/dist/admin/translations/nl.json.mjs.map +1 -1
- package/dist/admin/translations/zh-Hans.json.js +215 -215
- package/dist/admin/translations/zh-Hans.json.mjs +215 -215
- package/dist/server/register.js +2 -3
- package/dist/server/register.js.map +1 -1
- package/dist/server/register.mjs +2 -3
- package/dist/server/register.mjs.map +1 -1
- package/dist/server/src/register.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -1,232 +1,232 @@
|
|
|
1
|
-
var configurations = "
|
|
2
|
-
var from = "
|
|
1
|
+
var configurations = "配置";
|
|
2
|
+
var from = "从";
|
|
3
3
|
var zhHans = {
|
|
4
|
-
"attribute.boolean": "
|
|
4
|
+
"attribute.boolean": "布尔值",
|
|
5
5
|
"attribute.boolean.description": "好或不好、1 或 0、是或否",
|
|
6
|
-
"attribute.component": "
|
|
7
|
-
"attribute.component.description": "
|
|
8
|
-
"attribute.customField": "
|
|
9
|
-
"attribute.date": "
|
|
10
|
-
"attribute.date.description": "
|
|
11
|
-
"attribute.datetime": "
|
|
12
|
-
"attribute.dynamiczone": "
|
|
13
|
-
"attribute.dynamiczone.description": "
|
|
14
|
-
"attribute.email": "
|
|
15
|
-
"attribute.email.description": "
|
|
16
|
-
"attribute.enumeration": "
|
|
17
|
-
"attribute.enumeration.description": "
|
|
6
|
+
"attribute.component": "组件",
|
|
7
|
+
"attribute.component.description": "组合字段值以便重复使用",
|
|
8
|
+
"attribute.customField": "自定义字段",
|
|
9
|
+
"attribute.date": "日期",
|
|
10
|
+
"attribute.date.description": "时间选择器,可选择日期及时间",
|
|
11
|
+
"attribute.datetime": "日期时间",
|
|
12
|
+
"attribute.dynamiczone": "动态区域",
|
|
13
|
+
"attribute.dynamiczone.description": "动态选择组件及编辑其内容",
|
|
14
|
+
"attribute.email": "邮箱",
|
|
15
|
+
"attribute.email.description": "验证格式过的电子邮件字段",
|
|
16
|
+
"attribute.enumeration": "枚举",
|
|
17
|
+
"attribute.enumeration.description": "列举设定值并可择一为值",
|
|
18
18
|
"attribute.json": "JSON",
|
|
19
|
-
"attribute.json.description": "JSON
|
|
20
|
-
"attribute.media": "
|
|
21
|
-
"attribute.media.description": "
|
|
19
|
+
"attribute.json.description": "JSON 数据格式",
|
|
20
|
+
"attribute.media": "媒体",
|
|
21
|
+
"attribute.media.description": "图片、视频等文件",
|
|
22
22
|
"attribute.null": " ",
|
|
23
|
-
"attribute.number": "
|
|
24
|
-
"attribute.number.description": "
|
|
25
|
-
"attribute.password": "
|
|
26
|
-
"attribute.password.description": "
|
|
27
|
-
"attribute.relation": "
|
|
28
|
-
"attribute.relation.description": "
|
|
29
|
-
"attribute.richtext": "
|
|
30
|
-
"attribute.richtext.description": "
|
|
31
|
-
"attribute.blocks": "
|
|
32
|
-
"attribute.blocks.description": "
|
|
33
|
-
"attribute.text": "
|
|
34
|
-
"attribute.text.description": "
|
|
35
|
-
"attribute.time": "
|
|
36
|
-
"attribute.timestamp": "
|
|
23
|
+
"attribute.number": "数字",
|
|
24
|
+
"attribute.number.description": "数字 (正整数、浮点数、小数)",
|
|
25
|
+
"attribute.password": "密码",
|
|
26
|
+
"attribute.password.description": "加密过的密码字段",
|
|
27
|
+
"attribute.relation": "关系",
|
|
28
|
+
"attribute.relation.description": "指向其他集合类型",
|
|
29
|
+
"attribute.richtext": "富文本 (Markdown)",
|
|
30
|
+
"attribute.richtext.description": "多文本格式编辑器",
|
|
31
|
+
"attribute.blocks": "富文本 (区块)",
|
|
32
|
+
"attribute.blocks.description": "基于JSON的新型富文本编辑器",
|
|
33
|
+
"attribute.text": "文本",
|
|
34
|
+
"attribute.text.description": "短的标题或长的描述文字",
|
|
35
|
+
"attribute.time": "时间",
|
|
36
|
+
"attribute.timestamp": "时间戳",
|
|
37
37
|
"attribute.uid": "UID",
|
|
38
|
-
"attribute.uid.description": "
|
|
39
|
-
"button.attributes.add.another": "
|
|
40
|
-
"button.component.add": "
|
|
41
|
-
"button.component.create": "
|
|
42
|
-
"button.model.create": "
|
|
43
|
-
"button.single-types.create": "
|
|
44
|
-
"component.repeatable": "(
|
|
45
|
-
"components.SelectComponents.displayed-value": "
|
|
46
|
-
"components.componentSelect.no-component-available": "
|
|
47
|
-
"components.componentSelect.no-component-available.with-search": "
|
|
48
|
-
"components.componentSelect.value-component": "{number}
|
|
49
|
-
"components.componentSelect.value-components": "{number}
|
|
38
|
+
"attribute.uid.description": "唯一识别码",
|
|
39
|
+
"button.attributes.add.another": "新增字段",
|
|
40
|
+
"button.component.add": "新增组件",
|
|
41
|
+
"button.component.create": "创建新组件",
|
|
42
|
+
"button.model.create": "创建新的集合类型",
|
|
43
|
+
"button.single-types.create": "创建新的单一类型",
|
|
44
|
+
"component.repeatable": "(可重复)",
|
|
45
|
+
"components.SelectComponents.displayed-value": "已选择 {number, plural, =0 {# 个组件} one {# 个组件} other {# 个组件}}",
|
|
46
|
+
"components.componentSelect.no-component-available": "你已经加入了所有可以加入的组件",
|
|
47
|
+
"components.componentSelect.no-component-available.with-search": "搜索不到符合的组件",
|
|
48
|
+
"components.componentSelect.value-component": "{number} 个组件被选取 (输入搜索组件)",
|
|
49
|
+
"components.componentSelect.value-components": "{number} 个组件被选取",
|
|
50
50
|
configurations: configurations,
|
|
51
|
-
"contentType.apiId-plural.description": "
|
|
52
|
-
"contentType.apiId-plural.label": "API ID (
|
|
53
|
-
"contentType.apiId-singular.description": "
|
|
54
|
-
"contentType.apiId-singular.label": "API ID (
|
|
55
|
-
"contentType.collectionName.description": "
|
|
56
|
-
"contentType.collectionName.label": "
|
|
57
|
-
"contentType.displayName.label": "
|
|
58
|
-
"contentType.kind.change.warning": "
|
|
59
|
-
"error.attributeName.reserved-name": "
|
|
60
|
-
"error.contentType.pluralName-used": "
|
|
61
|
-
"error.contentType.singularName-used": "
|
|
62
|
-
"error.contentType.singularName-equals-pluralName": "
|
|
63
|
-
"error.contentType.pluralName-equals-singularName": "
|
|
64
|
-
"error.contentType.pluralName-equals-collectionName": "
|
|
65
|
-
"error.contentTypeName.reserved-name": "
|
|
66
|
-
"error.validation.enum-duplicate": "
|
|
67
|
-
"error.validation.enum-empty-string": "
|
|
68
|
-
"error.validation.enum-regex": "
|
|
69
|
-
"error.validation.minSupMax": "
|
|
70
|
-
"error.validation.positive": "
|
|
71
|
-
"error.validation.regex": "
|
|
72
|
-
"error.validation.relation.targetAttribute-taken": "
|
|
73
|
-
"form.attribute.component.option.add": "
|
|
74
|
-
"form.attribute.component.option.create": "
|
|
75
|
-
"form.attribute.component.option.create.description": "
|
|
76
|
-
"form.attribute.component.option.repeatable": "
|
|
77
|
-
"form.attribute.component.option.repeatable.description": "
|
|
78
|
-
"form.attribute.component.option.reuse-existing": "
|
|
79
|
-
"form.attribute.component.option.reuse-existing.description": "
|
|
80
|
-
"form.attribute.component.option.single": "
|
|
81
|
-
"form.attribute.component.option.single.description": "
|
|
82
|
-
"form.attribute.item.customColumnName": "
|
|
83
|
-
"form.attribute.item.customColumnName.description": "
|
|
51
|
+
"contentType.apiId-plural.description": "复数 API ID",
|
|
52
|
+
"contentType.apiId-plural.label": "API ID (复数)",
|
|
53
|
+
"contentType.apiId-singular.description": "用于生成 API 路径和数据库数据表/集合的 UID",
|
|
54
|
+
"contentType.apiId-singular.label": "API ID (单数)",
|
|
55
|
+
"contentType.collectionName.description": "使用于当内容集合名称与数据集合名称不同时",
|
|
56
|
+
"contentType.collectionName.label": "集合名称",
|
|
57
|
+
"contentType.displayName.label": "显示名称",
|
|
58
|
+
"contentType.kind.change.warning": "你变更了内容类型:API 将会被重置 (路由器、控制器、和服务将会被覆写)。",
|
|
59
|
+
"error.attributeName.reserved-name": "这个字段名称不可以在此内容类型内被使用,有可能会破坏其他功能",
|
|
60
|
+
"error.contentType.pluralName-used": "此数值不能与单数相同",
|
|
61
|
+
"error.contentType.singularName-used": "此数值不能与复数相同",
|
|
62
|
+
"error.contentType.singularName-equals-pluralName": "此数值不能与另一个内容类型的复数 API ID 相同",
|
|
63
|
+
"error.contentType.pluralName-equals-singularName": "此数值不能与另一个内容类型的单数 API ID 相同",
|
|
64
|
+
"error.contentType.pluralName-equals-collectionName": "此数值已被另一个内容类型使用",
|
|
65
|
+
"error.contentTypeName.reserved-name": "这个内容类型名称不可以在此项目内被使用,有可能会破坏其他功能",
|
|
66
|
+
"error.validation.enum-duplicate": "不允许重复的值 (只考虑字母数字字符)",
|
|
67
|
+
"error.validation.enum-empty-string": "不允许空字符串",
|
|
68
|
+
"error.validation.enum-regex": "有一个以上的数值无效。数值在首个数字前应先有英文字母。",
|
|
69
|
+
"error.validation.minSupMax": "不能超过最大值",
|
|
70
|
+
"error.validation.positive": "必须为正数",
|
|
71
|
+
"error.validation.regex": "不合法的正则表达式",
|
|
72
|
+
"error.validation.relation.targetAttribute-taken": "该字段名称已被使用",
|
|
73
|
+
"form.attribute.component.option.add": "新增组件",
|
|
74
|
+
"form.attribute.component.option.create": "创建新组件",
|
|
75
|
+
"form.attribute.component.option.create.description": "一个可以跨组件及类型引用的组件,可以在任何地方被引用",
|
|
76
|
+
"form.attribute.component.option.repeatable": "可重复组件",
|
|
77
|
+
"form.attribute.component.option.repeatable.description": "适用于数组、列表、标签类型组件",
|
|
78
|
+
"form.attribute.component.option.reuse-existing": "使用一个已创建的组件",
|
|
79
|
+
"form.attribute.component.option.reuse-existing.description": "可复用组件已创建,可以协助你在不同的内容类型间保持数据一致性",
|
|
80
|
+
"form.attribute.component.option.single": "单一组件",
|
|
81
|
+
"form.attribute.component.option.single.description": "适用于组合型字段群,如:完整地址、基本完整信息等",
|
|
82
|
+
"form.attribute.item.customColumnName": "自定义字段名称",
|
|
83
|
+
"form.attribute.item.customColumnName.description": "将数据库字段名称以更易懂的格式重新命名,对 API 响应很有用。",
|
|
84
84
|
"form.attribute.item.date.type.date": "date (例如:01/01/{currentYear})",
|
|
85
85
|
"form.attribute.item.date.type.datetime": "datetime (例如:01/01/{currentYear} 00:00 AM)",
|
|
86
86
|
"form.attribute.item.date.type.time": "time (例如:00:00 AM)",
|
|
87
|
-
"form.attribute.item.defineRelation.fieldName": "
|
|
88
|
-
"form.attribute.item.enumeration.graphql": "GraphQL
|
|
89
|
-
"form.attribute.item.enumeration.graphql.description": "
|
|
87
|
+
"form.attribute.item.defineRelation.fieldName": "字段名称",
|
|
88
|
+
"form.attribute.item.enumeration.graphql": "GraphQL 名称覆盖",
|
|
89
|
+
"form.attribute.item.enumeration.graphql.description": "可以让您覆盖 GraphQL 的默认名称",
|
|
90
90
|
"form.attribute.item.enumeration.placeholder": "例:\n早上\n中午\n晚上",
|
|
91
|
-
"form.attribute.item.enumeration.rules": "值 (
|
|
92
|
-
"form.attribute.item.maximum": "
|
|
93
|
-
"form.attribute.item.maximumLength": "
|
|
94
|
-
"form.attribute.item.minimum": "
|
|
95
|
-
"form.attribute.item.minimumLength": "
|
|
96
|
-
"form.attribute.item.number.type": "
|
|
97
|
-
"form.attribute.item.number.type.biginteger": "
|
|
98
|
-
"form.attribute.item.number.type.decimal": "
|
|
99
|
-
"form.attribute.item.number.type.float": "
|
|
100
|
-
"form.attribute.item.number.type.integer": "
|
|
101
|
-
"form.attribute.item.privateField": "
|
|
102
|
-
"form.attribute.item.privateField.description": "
|
|
103
|
-
"form.attribute.item.requiredField": "
|
|
104
|
-
"form.attribute.item.requiredField.description": "
|
|
105
|
-
"form.attribute.item.text.regex": "
|
|
106
|
-
"form.attribute.item.text.regex.description": "
|
|
107
|
-
"form.attribute.item.uniqueField": "
|
|
108
|
-
"form.attribute.item.uniqueField.description": "
|
|
109
|
-
"form.attribute.item.uniqueField.v5.willBeDisabled": "
|
|
110
|
-
"form.attribute.item.uniqueField.v5.disabled": "
|
|
111
|
-
"form.attribute.media.allowed-types": "
|
|
112
|
-
"form.attribute.media.allowed-types.option-files": "
|
|
113
|
-
"form.attribute.media.allowed-types.option-images": "
|
|
114
|
-
"form.attribute.media.allowed-types.option-videos": "
|
|
115
|
-
"form.attribute.media.option.multiple": "
|
|
116
|
-
"form.attribute.media.option.multiple.description": "
|
|
117
|
-
"form.attribute.media.option.single": "
|
|
118
|
-
"form.attribute.media.option.single.description": "
|
|
119
|
-
"form.attribute.settings.default": "
|
|
120
|
-
"form.attribute.text.option.long-text": "
|
|
121
|
-
"form.attribute.text.option.long-text.description": "
|
|
122
|
-
"form.attribute.text.option.short-text": "
|
|
123
|
-
"form.attribute.text.option.short-text.description": "
|
|
124
|
-
"form.button.add-components-to-dynamiczone": "
|
|
125
|
-
"form.button.add-field": "
|
|
126
|
-
"form.button.add-first-field-to-created-component": "
|
|
127
|
-
"form.button.add.field.to.collectionType": "
|
|
128
|
-
"form.button.add.field.to.component": "
|
|
129
|
-
"form.button.add.field.to.contentType": "
|
|
130
|
-
"form.button.add.field.to.singleType": "
|
|
91
|
+
"form.attribute.item.enumeration.rules": "值 (格式为一行一个值)",
|
|
92
|
+
"form.attribute.item.maximum": "最大值",
|
|
93
|
+
"form.attribute.item.maximumLength": "最大长度",
|
|
94
|
+
"form.attribute.item.minimum": "最小值",
|
|
95
|
+
"form.attribute.item.minimumLength": "最小长度",
|
|
96
|
+
"form.attribute.item.number.type": "数字格式",
|
|
97
|
+
"form.attribute.item.number.type.biginteger": "大整数 (例如:123456789)",
|
|
98
|
+
"form.attribute.item.number.type.decimal": "浮点数 (decimal) (例: 2.22)",
|
|
99
|
+
"form.attribute.item.number.type.float": "浮点数 (float) (例: 3.33333333)",
|
|
100
|
+
"form.attribute.item.number.type.integer": "整数 (例: 10)",
|
|
101
|
+
"form.attribute.item.privateField": "私有字段",
|
|
102
|
+
"form.attribute.item.privateField.description": "该字段不会被显示在 API 的返回数据中",
|
|
103
|
+
"form.attribute.item.requiredField": "必填字段",
|
|
104
|
+
"form.attribute.item.requiredField.description": "如果这个字段留空,您将不能创建项目。",
|
|
105
|
+
"form.attribute.item.text.regex": "正则表达式",
|
|
106
|
+
"form.attribute.item.text.regex.description": "文本正则表达式",
|
|
107
|
+
"form.attribute.item.uniqueField": "唯一字段",
|
|
108
|
+
"form.attribute.item.uniqueField.description": "如果已存在的项目有一模一样的内容,您将不能创建项目。",
|
|
109
|
+
"form.attribute.item.uniqueField.v5.willBeDisabled": "目前唯一字段在组件中运作不正常。如果您启用此功能,字段将被禁用直到问题修复。",
|
|
110
|
+
"form.attribute.item.uniqueField.v5.disabled": "目前唯一字段在组件中运作不正常。此字段已被禁用直到问题修复。",
|
|
111
|
+
"form.attribute.media.allowed-types": "选择合法的多媒体类型",
|
|
112
|
+
"form.attribute.media.allowed-types.option-files": "文件",
|
|
113
|
+
"form.attribute.media.allowed-types.option-images": "图片",
|
|
114
|
+
"form.attribute.media.allowed-types.option-videos": "视频",
|
|
115
|
+
"form.attribute.media.option.multiple": "多个媒体",
|
|
116
|
+
"form.attribute.media.option.multiple.description": "适用于轮播模块或多文件下载",
|
|
117
|
+
"form.attribute.media.option.single": "单个媒体",
|
|
118
|
+
"form.attribute.media.option.single.description": "适用于头像或背景图",
|
|
119
|
+
"form.attribute.settings.default": "默认值",
|
|
120
|
+
"form.attribute.text.option.long-text": "长文本",
|
|
121
|
+
"form.attribute.text.option.long-text.description": "适用于描述及自传内容,但无法被精准搜索",
|
|
122
|
+
"form.attribute.text.option.short-text": "短文本",
|
|
123
|
+
"form.attribute.text.option.short-text.description": "适用于标题、名称、链接且可以被精准搜索",
|
|
124
|
+
"form.button.add-components-to-dynamiczone": "新增组件至动态区域",
|
|
125
|
+
"form.button.add-field": "新增字段",
|
|
126
|
+
"form.button.add-first-field-to-created-component": "新增组件的第一个字段",
|
|
127
|
+
"form.button.add.field.to.collectionType": "新增其他字段于此集合类型",
|
|
128
|
+
"form.button.add.field.to.component": "新增其他字段于此组件",
|
|
129
|
+
"form.button.add.field.to.contentType": "新增其他字段于此内容类型",
|
|
130
|
+
"form.button.add.field.to.singleType": "新增其他字段于此单一类型",
|
|
131
131
|
"form.button.cancel": "取消",
|
|
132
|
-
"form.button.collection-type.description": "
|
|
133
|
-
"form.button.collection-type.name": "
|
|
134
|
-
"form.button.configure-component": "
|
|
135
|
-
"form.button.configure-view": "
|
|
136
|
-
"form.button.select-component": "
|
|
137
|
-
"form.button.single-type.description": "
|
|
138
|
-
"form.button.single-type.name": "
|
|
132
|
+
"form.button.collection-type.description": "适用于多个实例,如文章、产品、帖子等",
|
|
133
|
+
"form.button.collection-type.name": "集合类型",
|
|
134
|
+
"form.button.configure-component": "配置组件",
|
|
135
|
+
"form.button.configure-view": "配置视图",
|
|
136
|
+
"form.button.select-component": "选择一个组件",
|
|
137
|
+
"form.button.single-type.description": "适用于单一实例,如首页、关于页等",
|
|
138
|
+
"form.button.single-type.name": "单一类型",
|
|
139
139
|
from: from,
|
|
140
|
-
"menu.section.components.name": "
|
|
141
|
-
"menu.section.models.name": "
|
|
142
|
-
"menu.section.single-types.name": "
|
|
143
|
-
"modalForm.attribute.form.base.name.description": "
|
|
144
|
-
"modalForm.attribute.form.base.name.placeholder": "例如:slug、seo
|
|
145
|
-
"modalForm.attribute.target-field": "
|
|
146
|
-
"modalForm.attributes.select-component": "
|
|
147
|
-
"modalForm.attributes.select-components": "
|
|
148
|
-
"modalForm.collectionType.header-create": "
|
|
149
|
-
"modalForm.component.header-create": "
|
|
150
|
-
"modalForm.components.create-component.category.label": "
|
|
151
|
-
"modalForm.components.icon.label": "
|
|
152
|
-
"modalForm.empty.button": "
|
|
153
|
-
"modalForm.empty.heading": "
|
|
154
|
-
"modalForm.empty.sub-heading": "
|
|
155
|
-
"modalForm.editCategory.base.name.description": "
|
|
156
|
-
"modalForm.header-edit": "
|
|
157
|
-
"modalForm.header-categories": "
|
|
158
|
-
"modalForm.header-back": "
|
|
159
|
-
"modalForm.singleType.header-create": "
|
|
160
|
-
"modalForm.sub-header.addComponentToDynamicZone": "
|
|
161
|
-
"modalForm.sub-header.attribute.create": "新增 {type}
|
|
162
|
-
"modalForm.sub-header.attribute.create.step": "
|
|
163
|
-
"modalForm.sub-header.attribute.edit": "
|
|
164
|
-
"modalForm.sub-header.chooseAttribute.collectionType": "
|
|
165
|
-
"modalForm.sub-header.chooseAttribute.component": "
|
|
166
|
-
"modalForm.sub-header.chooseAttribute.singleType": "
|
|
167
|
-
"modalForm.custom-fields.advanced.settings.extended": "
|
|
168
|
-
"modalForm.tabs.custom": "
|
|
169
|
-
"modalForm.tabs.custom.howToLink": "
|
|
170
|
-
"modalForm.tabs.default": "
|
|
171
|
-
"modalForm.tabs.label": "
|
|
172
|
-
"modelPage.attribute.relation-polymorphic": "
|
|
173
|
-
"modelPage.attribute.relationWith": "
|
|
174
|
-
"notification.error.dynamiczone-min.validation": "
|
|
175
|
-
"notification.info.autoreaload-disable": "
|
|
176
|
-
"notification.info.creating.notSaved": "
|
|
177
|
-
"plugin.description.long": "
|
|
178
|
-
"plugin.description.short": "
|
|
179
|
-
"plugin.name": "
|
|
180
|
-
"popUpForm.navContainer.advanced": "
|
|
181
|
-
"popUpForm.navContainer.base": "
|
|
182
|
-
"popUpWarning.bodyMessage.cancel-modifications": "
|
|
183
|
-
"popUpWarning.bodyMessage.cancel-modifications.with-components": "
|
|
184
|
-
"popUpWarning.bodyMessage.category.delete": "
|
|
185
|
-
"popUpWarning.bodyMessage.component.delete": "
|
|
186
|
-
"popUpWarning.bodyMessage.contentType.delete": "
|
|
187
|
-
"popUpWarning.draft-publish.button.confirm": "
|
|
188
|
-
"popUpWarning.draft-publish.message": "
|
|
189
|
-
"popUpWarning.draft-publish.second-message": "
|
|
190
|
-
"prompt.unsaved": "
|
|
191
|
-
"relation.attributeName.placeholder": "
|
|
192
|
-
"relation.manyToMany": "
|
|
193
|
-
"relation.manyToOne": "
|
|
194
|
-
"relation.manyWay": "
|
|
195
|
-
"relation.oneToMany": "
|
|
196
|
-
"relation.oneToOne": "
|
|
197
|
-
"relation.oneWay": "
|
|
198
|
-
"table.button.no-fields": "
|
|
199
|
-
"table.content.create-first-content-type.title": "
|
|
200
|
-
"table.content.create-first-content-type.description": "
|
|
201
|
-
"table.content.create-first-content-type.start-with-prompt": "
|
|
202
|
-
"table.content.no-fields.collection-type": "
|
|
203
|
-
"table.content.no-fields.component": "
|
|
204
|
-
"IconPicker.search.placeholder.label": "
|
|
205
|
-
"IconPicker.search.clear.label": "
|
|
206
|
-
"IconPicker.search.button.label": "
|
|
207
|
-
"IconPicker.remove.tooltip": "
|
|
208
|
-
"IconPicker.remove.button": "
|
|
209
|
-
"IconPicker.emptyState.label": "
|
|
210
|
-
"IconPicker.icon.label": "
|
|
211
|
-
"chat.tooltips.close-chat": "
|
|
212
|
-
"chat.tooltips.create-chat": "
|
|
213
|
-
"chat.tooltips.open-chat": "
|
|
214
|
-
"chat.tooltips.send-message": "
|
|
140
|
+
"menu.section.components.name": "组件",
|
|
141
|
+
"menu.section.models.name": "集合类型",
|
|
142
|
+
"menu.section.single-types.name": "单一类型",
|
|
143
|
+
"modalForm.attribute.form.base.name.description": "字段名称不允许空白",
|
|
144
|
+
"modalForm.attribute.form.base.name.placeholder": "例如:slug、seo网址、canonical网址",
|
|
145
|
+
"modalForm.attribute.target-field": "关联目标字段",
|
|
146
|
+
"modalForm.attributes.select-component": "选择一个组件",
|
|
147
|
+
"modalForm.attributes.select-components": "选择多个组件",
|
|
148
|
+
"modalForm.collectionType.header-create": "创建集合类型",
|
|
149
|
+
"modalForm.component.header-create": "创建组件",
|
|
150
|
+
"modalForm.components.create-component.category.label": "选择或新增一个分类",
|
|
151
|
+
"modalForm.components.icon.label": "图标",
|
|
152
|
+
"modalForm.empty.button": "新增自定义字段",
|
|
153
|
+
"modalForm.empty.heading": "这里目前什么都没有。",
|
|
154
|
+
"modalForm.empty.sub-heading": "通过扩展功能找到您想搜索的项目。",
|
|
155
|
+
"modalForm.editCategory.base.name.description": "分类名称不允许空白",
|
|
156
|
+
"modalForm.header-edit": "编辑 {name}",
|
|
157
|
+
"modalForm.header-categories": "多个分类",
|
|
158
|
+
"modalForm.header-back": "返回",
|
|
159
|
+
"modalForm.singleType.header-create": "创建单一类型",
|
|
160
|
+
"modalForm.sub-header.addComponentToDynamicZone": "在动态区域新增一个组件",
|
|
161
|
+
"modalForm.sub-header.attribute.create": "新增 {type} 字段",
|
|
162
|
+
"modalForm.sub-header.attribute.create.step": "新增组件 ({step}/2)",
|
|
163
|
+
"modalForm.sub-header.attribute.edit": "编辑 {name}",
|
|
164
|
+
"modalForm.sub-header.chooseAttribute.collectionType": "选择集合类型的一个字段",
|
|
165
|
+
"modalForm.sub-header.chooseAttribute.component": "选择组件的一个字段",
|
|
166
|
+
"modalForm.sub-header.chooseAttribute.singleType": "选择单一类型的一个字段",
|
|
167
|
+
"modalForm.custom-fields.advanced.settings.extended": "扩展设置",
|
|
168
|
+
"modalForm.tabs.custom": "自定义",
|
|
169
|
+
"modalForm.tabs.custom.howToLink": "如何新增自定义字段",
|
|
170
|
+
"modalForm.tabs.default": "默认",
|
|
171
|
+
"modalForm.tabs.label": "默认和自定义类型分页",
|
|
172
|
+
"modelPage.attribute.relation-polymorphic": "关联 (多对多多态)",
|
|
173
|
+
"modelPage.attribute.relationWith": "关联到",
|
|
174
|
+
"notification.error.dynamiczone-min.validation": "至少要有一个位于动态区域中的组件才能保存内容类型",
|
|
175
|
+
"notification.info.autoreaload-disable": "启用这个扩展模块需要重新启动,使用 `strapi develop` 指令重新启动",
|
|
176
|
+
"notification.info.creating.notSaved": "在创建新的集合类型或组件前请记得保存",
|
|
177
|
+
"plugin.description.long": "为您的 API 定义数据结构,使您轻松新增字段和关联结构,您所做的修改会自动更新项目。",
|
|
178
|
+
"plugin.description.short": "为您的 API 定义数据结构",
|
|
179
|
+
"plugin.name": "内容类型构建器",
|
|
180
|
+
"popUpForm.navContainer.advanced": "高级设置",
|
|
181
|
+
"popUpForm.navContainer.base": "基本设置",
|
|
182
|
+
"popUpWarning.bodyMessage.cancel-modifications": "你确定要取消你的修改吗?",
|
|
183
|
+
"popUpWarning.bodyMessage.cancel-modifications.with-components": "你确定要取消你的修改吗?部分组件已被新增或修改...",
|
|
184
|
+
"popUpWarning.bodyMessage.category.delete": "你确定要删除此分类吗?所有此分类内的组件都会被删除。",
|
|
185
|
+
"popUpWarning.bodyMessage.component.delete": "你确定要删除此组件吗?",
|
|
186
|
+
"popUpWarning.bodyMessage.contentType.delete": "您确定要删除这个数据结构吗?",
|
|
187
|
+
"popUpWarning.draft-publish.button.confirm": "是的,请停用",
|
|
188
|
+
"popUpWarning.draft-publish.message": "如果您停用了草稿/发布系统,您的草稿将被删除。",
|
|
189
|
+
"popUpWarning.draft-publish.second-message": "您确定要停用吗?",
|
|
190
|
+
"prompt.unsaved": "你确定要离开吗?所有你的修改都会失效。",
|
|
191
|
+
"relation.attributeName.placeholder": "例如:作者、类别、标签...",
|
|
192
|
+
"relation.manyToMany": "有且属于多个",
|
|
193
|
+
"relation.manyToOne": "有多个",
|
|
194
|
+
"relation.manyWay": "有多个",
|
|
195
|
+
"relation.oneToMany": "属于多个",
|
|
196
|
+
"relation.oneToOne": "有一个并属于一个",
|
|
197
|
+
"relation.oneWay": "有一个",
|
|
198
|
+
"table.button.no-fields": "新增字段",
|
|
199
|
+
"table.content.create-first-content-type.title": "没有内容类型",
|
|
200
|
+
"table.content.create-first-content-type.description": "创建集合类型、单一类型和组件以构建您的 schema。",
|
|
201
|
+
"table.content.create-first-content-type.start-with-prompt": "从提示开始",
|
|
202
|
+
"table.content.no-fields.collection-type": "向此集合类型新增首个字段",
|
|
203
|
+
"table.content.no-fields.component": "向此组件新增首个字段",
|
|
204
|
+
"IconPicker.search.placeholder.label": "搜索图标",
|
|
205
|
+
"IconPicker.search.clear.label": "清除图标搜索",
|
|
206
|
+
"IconPicker.search.button.label": "搜索图标按钮",
|
|
207
|
+
"IconPicker.remove.tooltip": "移除选定的图标",
|
|
208
|
+
"IconPicker.remove.button": "移除选定图标按钮",
|
|
209
|
+
"IconPicker.emptyState.label": "未找到图标",
|
|
210
|
+
"IconPicker.icon.label": "选择 {icon} 图标",
|
|
211
|
+
"chat.tooltips.close-chat": "关闭聊天",
|
|
212
|
+
"chat.tooltips.create-chat": "新对话",
|
|
213
|
+
"chat.tooltips.open-chat": "开启聊天",
|
|
214
|
+
"chat.tooltips.send-message": "发送",
|
|
215
215
|
"chat.tooltips.stop-generation": "停止",
|
|
216
|
-
"chat.header.default-title": "
|
|
217
|
-
"chat.input.defaults.title": "
|
|
218
|
-
"chat.input.defaults.generate": "
|
|
219
|
-
"chat.input.defaults.ctb": "
|
|
220
|
-
"chat.input.defaults.strapi": "
|
|
216
|
+
"chat.header.default-title": "新对话",
|
|
217
|
+
"chat.input.defaults.title": "我能帮您什么?",
|
|
218
|
+
"chat.input.defaults.generate": "生成产品 schema",
|
|
219
|
+
"chat.input.defaults.ctb": "告诉我关于内容类型构建器",
|
|
220
|
+
"chat.input.defaults.strapi": "告诉我关于 Strapi",
|
|
221
221
|
"chat.input.thinking": "Strapi AI 正在思考...",
|
|
222
|
-
"chat.input.placeholder": "
|
|
223
|
-
"chat.input.strapi-ai-can-make-errors": "Strapi AI
|
|
224
|
-
"chat.messages.error": "
|
|
225
|
-
"chat.code-upload.header": "
|
|
226
|
-
"chat.code-upload.title": "
|
|
227
|
-
"chat.code-upload.description": "
|
|
228
|
-
"chat.code-upload.drop-zone": "
|
|
229
|
-
"chat.code-upload.drop-zone-browse": "
|
|
222
|
+
"chat.input.placeholder": "询问 Strapi AI...",
|
|
223
|
+
"chat.input.strapi-ai-can-make-errors": "Strapi AI 可能会出错。",
|
|
224
|
+
"chat.messages.error": "出了点问题。",
|
|
225
|
+
"chat.code-upload.header": "导入 Next.js 应用",
|
|
226
|
+
"chat.code-upload.title": "导入 Next.js 应用",
|
|
227
|
+
"chat.code-upload.description": "您的应用将被 AI 分析。请确保在导入前删除所有敏感数据。",
|
|
228
|
+
"chat.code-upload.drop-zone": "在此处放置 .zip 文件或",
|
|
229
|
+
"chat.code-upload.drop-zone-browse": "浏览文件"
|
|
230
230
|
};
|
|
231
231
|
|
|
232
232
|
export { configurations, zhHans as default, from };
|
package/dist/server/register.js
CHANGED
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
var utils = require('@strapi/utils');
|
|
4
4
|
|
|
5
5
|
var register = (async ({ strapi })=>{
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
if (isAIEnabled) {
|
|
6
|
+
const isAiEnabled = strapi.ai.admin.isEnabled();
|
|
7
|
+
if (isAiEnabled) {
|
|
9
8
|
const s3Domains = [
|
|
10
9
|
'strapi-ai-staging.s3.us-east-1.amazonaws.com',
|
|
11
10
|
'strapi-ai-production.s3.us-east-1.amazonaws.com'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.js","sources":["../../server/src/register.ts"],"sourcesContent":["import type { Core } from '@strapi/types';\nimport { CSP_DEFAULTS, extendMiddlewareConfiguration } from '@strapi/utils';\n\nexport default async ({ strapi }: { strapi: Core.Strapi }) => {\n const
|
|
1
|
+
{"version":3,"file":"register.js","sources":["../../server/src/register.ts"],"sourcesContent":["import type { Core } from '@strapi/types';\nimport { CSP_DEFAULTS, extendMiddlewareConfiguration } from '@strapi/utils';\n\nexport default async ({ strapi }: { strapi: Core.Strapi }) => {\n const isAiEnabled = strapi.ai.admin.isEnabled();\n\n if (isAiEnabled) {\n const s3Domains = [\n 'strapi-ai-staging.s3.us-east-1.amazonaws.com',\n 'strapi-ai-production.s3.us-east-1.amazonaws.com',\n ];\n\n const defaultImgSrc = CSP_DEFAULTS['img-src'];\n const defaultMediaSrc = CSP_DEFAULTS['media-src'];\n\n // Extend the security middleware configuration to include S3 domains + defaults\n const middlewares = strapi.config.get('middlewares') as (\n | string\n | { name?: string; config?: any }\n )[];\n\n const configuredMiddlewares = extendMiddlewareConfiguration(middlewares, {\n name: 'strapi::security',\n config: {\n contentSecurityPolicy: {\n directives: {\n 'img-src': [...defaultImgSrc, ...s3Domains],\n 'media-src': [...defaultMediaSrc, ...s3Domains],\n },\n },\n },\n });\n\n strapi.config.set('middlewares', configuredMiddlewares);\n }\n};\n"],"names":["strapi","isAiEnabled","ai","admin","isEnabled","s3Domains","defaultImgSrc","CSP_DEFAULTS","defaultMediaSrc","middlewares","config","get","configuredMiddlewares","extendMiddlewareConfiguration","name","contentSecurityPolicy","directives","set"],"mappings":";;;;AAGA,eAAe,CAAA,OAAO,EAAEA,MAAM,EAA2B,GAAA;AACvD,IAAA,MAAMC,cAAcD,MAAAA,CAAOE,EAAE,CAACC,KAAK,CAACC,SAAS,EAAA;AAE7C,IAAA,IAAIH,WAAAA,EAAa;AACf,QAAA,MAAMI,SAAAA,GAAY;AAChB,YAAA,8CAAA;AACA,YAAA;AACD,SAAA;QAED,MAAMC,aAAAA,GAAgBC,kBAAY,CAAC,SAAA,CAAU;QAC7C,MAAMC,eAAAA,GAAkBD,kBAAY,CAAC,WAAA,CAAY;;AAGjD,QAAA,MAAME,WAAAA,GAAcT,MAAAA,CAAOU,MAAM,CAACC,GAAG,CAAC,aAAA,CAAA;QAKtC,MAAMC,qBAAAA,GAAwBC,oCAA8BJ,WAAAA,EAAa;YACvEK,IAAAA,EAAM,kBAAA;YACNJ,MAAAA,EAAQ;gBACNK,qBAAAA,EAAuB;oBACrBC,UAAAA,EAAY;wBACV,SAAA,EAAW;AAAIV,4BAAAA,GAAAA,aAAAA;AAAkBD,4BAAAA,GAAAA;AAAU,yBAAA;wBAC3C,WAAA,EAAa;AAAIG,4BAAAA,GAAAA,eAAAA;AAAoBH,4BAAAA,GAAAA;AAAU;AACjD;AACF;AACF;AACF,SAAA,CAAA;AAEAL,QAAAA,MAAAA,CAAOU,MAAM,CAACO,GAAG,CAAC,aAAA,EAAeL,qBAAAA,CAAAA;AACnC,IAAA;AACF,CAAA;;;;"}
|
package/dist/server/register.mjs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { CSP_DEFAULTS, extendMiddlewareConfiguration } from '@strapi/utils';
|
|
2
2
|
|
|
3
3
|
var register = (async ({ strapi })=>{
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
if (isAIEnabled) {
|
|
4
|
+
const isAiEnabled = strapi.ai.admin.isEnabled();
|
|
5
|
+
if (isAiEnabled) {
|
|
7
6
|
const s3Domains = [
|
|
8
7
|
'strapi-ai-staging.s3.us-east-1.amazonaws.com',
|
|
9
8
|
'strapi-ai-production.s3.us-east-1.amazonaws.com'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.mjs","sources":["../../server/src/register.ts"],"sourcesContent":["import type { Core } from '@strapi/types';\nimport { CSP_DEFAULTS, extendMiddlewareConfiguration } from '@strapi/utils';\n\nexport default async ({ strapi }: { strapi: Core.Strapi }) => {\n const
|
|
1
|
+
{"version":3,"file":"register.mjs","sources":["../../server/src/register.ts"],"sourcesContent":["import type { Core } from '@strapi/types';\nimport { CSP_DEFAULTS, extendMiddlewareConfiguration } from '@strapi/utils';\n\nexport default async ({ strapi }: { strapi: Core.Strapi }) => {\n const isAiEnabled = strapi.ai.admin.isEnabled();\n\n if (isAiEnabled) {\n const s3Domains = [\n 'strapi-ai-staging.s3.us-east-1.amazonaws.com',\n 'strapi-ai-production.s3.us-east-1.amazonaws.com',\n ];\n\n const defaultImgSrc = CSP_DEFAULTS['img-src'];\n const defaultMediaSrc = CSP_DEFAULTS['media-src'];\n\n // Extend the security middleware configuration to include S3 domains + defaults\n const middlewares = strapi.config.get('middlewares') as (\n | string\n | { name?: string; config?: any }\n )[];\n\n const configuredMiddlewares = extendMiddlewareConfiguration(middlewares, {\n name: 'strapi::security',\n config: {\n contentSecurityPolicy: {\n directives: {\n 'img-src': [...defaultImgSrc, ...s3Domains],\n 'media-src': [...defaultMediaSrc, ...s3Domains],\n },\n },\n },\n });\n\n strapi.config.set('middlewares', configuredMiddlewares);\n }\n};\n"],"names":["strapi","isAiEnabled","ai","admin","isEnabled","s3Domains","defaultImgSrc","CSP_DEFAULTS","defaultMediaSrc","middlewares","config","get","configuredMiddlewares","extendMiddlewareConfiguration","name","contentSecurityPolicy","directives","set"],"mappings":";;AAGA,eAAe,CAAA,OAAO,EAAEA,MAAM,EAA2B,GAAA;AACvD,IAAA,MAAMC,cAAcD,MAAAA,CAAOE,EAAE,CAACC,KAAK,CAACC,SAAS,EAAA;AAE7C,IAAA,IAAIH,WAAAA,EAAa;AACf,QAAA,MAAMI,SAAAA,GAAY;AAChB,YAAA,8CAAA;AACA,YAAA;AACD,SAAA;QAED,MAAMC,aAAAA,GAAgBC,YAAY,CAAC,SAAA,CAAU;QAC7C,MAAMC,eAAAA,GAAkBD,YAAY,CAAC,WAAA,CAAY;;AAGjD,QAAA,MAAME,WAAAA,GAAcT,MAAAA,CAAOU,MAAM,CAACC,GAAG,CAAC,aAAA,CAAA;QAKtC,MAAMC,qBAAAA,GAAwBC,8BAA8BJ,WAAAA,EAAa;YACvEK,IAAAA,EAAM,kBAAA;YACNJ,MAAAA,EAAQ;gBACNK,qBAAAA,EAAuB;oBACrBC,UAAAA,EAAY;wBACV,SAAA,EAAW;AAAIV,4BAAAA,GAAAA,aAAAA;AAAkBD,4BAAAA,GAAAA;AAAU,yBAAA;wBAC3C,WAAA,EAAa;AAAIG,4BAAAA,GAAAA,eAAAA;AAAoBH,4BAAAA,GAAAA;AAAU;AACjD;AACF;AACF;AACF,SAAA,CAAA;AAEAL,QAAAA,MAAAA,CAAOU,MAAM,CAACO,GAAG,CAAC,aAAA,EAAeL,qBAAAA,CAAAA;AACnC,IAAA;AACF,CAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../server/src/register.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;qCAGR;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;AAAzD,
|
|
1
|
+
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../server/src/register.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;qCAGR;IAAE,MAAM,EAAE,KAAK,MAAM,CAAA;CAAE;AAAzD,wBAgCE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/content-type-builder",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.43.0",
|
|
4
4
|
"description": "Create and manage content types",
|
|
5
5
|
"homepage": "https://strapi.io",
|
|
6
6
|
"bugs": {
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
"@reduxjs/toolkit": "1.9.7",
|
|
74
74
|
"@sindresorhus/slugify": "1.1.0",
|
|
75
75
|
"@strapi/design-system": "2.2.0",
|
|
76
|
-
"@strapi/generators": "5.
|
|
76
|
+
"@strapi/generators": "5.43.0",
|
|
77
77
|
"@strapi/icons": "2.2.0",
|
|
78
|
-
"@strapi/utils": "5.
|
|
78
|
+
"@strapi/utils": "5.43.0",
|
|
79
79
|
"ai": "5.0.52",
|
|
80
80
|
"date-fns": "2.30.0",
|
|
81
81
|
"fs-extra": "11.2.0",
|
|
@@ -93,8 +93,8 @@
|
|
|
93
93
|
"zod": "3.25.67"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
|
-
"@strapi/admin": "5.
|
|
97
|
-
"@strapi/types": "5.
|
|
96
|
+
"@strapi/admin": "5.43.0",
|
|
97
|
+
"@strapi/types": "5.43.0",
|
|
98
98
|
"@testing-library/dom": "10.4.1",
|
|
99
99
|
"@testing-library/react": "16.3.0",
|
|
100
100
|
"@testing-library/user-event": "14.6.1",
|