mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
feat: i18n
This commit is contained in:
parent
90f4d59ec5
commit
255b4fdde4
|
|
@ -63,7 +63,7 @@ class IApplicationNode(INode):
|
|||
app_audio_list[1:])
|
||||
for audio in app_audio_list:
|
||||
if 'file_id' not in audio:
|
||||
raise ValueError(_("Parameter value error: The uploaded image lacks file_id, and the audio upload fails."))
|
||||
raise ValueError(_("Parameter value error: The uploaded audio lacks file_id, and the audio upload fails."))
|
||||
return self.execute(**self.node_params_serializer.data, **self.flow_params_serializer.data,
|
||||
app_document_list=app_document_list, app_image_list=app_image_list,
|
||||
app_audio_list=app_audio_list,
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class InputField(serializers.Serializer):
|
|||
is_required = serializers.BooleanField(required=True, error_messages=ErrMessage.boolean(_("Is this field required")))
|
||||
type = serializers.CharField(required=True, error_messages=ErrMessage.char(_("type")), validators=[
|
||||
validators.RegexValidator(regex=re.compile("^string|int|dict|array|float$"),
|
||||
message=_("字段只支持string|int|dict|array|float"), code=500)
|
||||
message=_("The field only supports string|int|dict|array|float"), code=500)
|
||||
])
|
||||
source = serializers.CharField(required=True, error_messages=ErrMessage.char(_("source")), validators=[
|
||||
validators.RegexValidator(regex=re.compile("^custom|reference$"),
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ class DatasetSettingSerializer(serializers.Serializer):
|
|||
error_messages=ErrMessage.integer(_("Reference segment number")))
|
||||
# 相似度 0-1之间
|
||||
similarity = serializers.FloatField(required=True, max_value=2, min_value=0,
|
||||
error_messages=ErrMessage.float(_("引用分段数")))
|
||||
error_messages=ErrMessage.float(_('similarity')))
|
||||
search_mode = serializers.CharField(required=True, validators=[
|
||||
validators.RegexValidator(regex=re.compile("^embedding|keywords|blend$"),
|
||||
message=_("The type only supports register|reset_password"), code=500)
|
||||
|
|
|
|||
|
|
@ -404,7 +404,7 @@ msgstr ""
|
|||
|
||||
#: .\apps\application\flow\step_node\application_node\i_application_node.py:66
|
||||
msgid ""
|
||||
"Parameter value error: The uploaded image lacks file_id, and the audio "
|
||||
"Parameter value error: The uploaded audio lacks file_id, and the audio "
|
||||
"upload fails."
|
||||
msgstr ""
|
||||
|
||||
|
|
@ -502,7 +502,7 @@ msgid "type"
|
|||
msgstr ""
|
||||
|
||||
#: .\apps\application\flow\step_node\function_node\i_function_node.py:28
|
||||
msgid "字段只支持string|int|dict|array|float"
|
||||
msgid "The field only supports string|int|dict|array|float"
|
||||
msgstr ""
|
||||
|
||||
#: .\apps\application\flow\step_node\function_node\i_function_node.py:30
|
||||
|
|
@ -545,10 +545,6 @@ msgstr ""
|
|||
msgid "Maximum number of words in a quoted segment"
|
||||
msgstr ""
|
||||
|
||||
#: .\apps\application\flow\step_node\search_dataset_node\i_search_dataset_node.py:27
|
||||
msgid "引用分段数"
|
||||
msgstr ""
|
||||
|
||||
#: .\apps\application\flow\step_node\speech_to_text_step_node\i_speech_to_text_node.py:17
|
||||
msgid "The audio file cannot be empty"
|
||||
msgstr ""
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -119,7 +119,7 @@ export default {
|
|||
websiteSloganPlaceholder: 'Please enter the welcome message',
|
||||
websiteSloganTip: 'The welcome message below the product logo',
|
||||
defaultSlogan: 'Welcome to MaxKB Intelligent Knowledge Base Q&A System',
|
||||
defaultTip: 'Default is the MaxKB login interface, supports custom settings',
|
||||
defaultTip: 'Default is the MaxKB platform interface, supports custom settings',
|
||||
platformSetting: 'Platform Settings',
|
||||
showUserManual: 'Show User Manual',
|
||||
showForum: 'Show Forum Support',
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ export default {
|
|||
websiteSloganPlaceholder: '请输入欢迎语',
|
||||
websiteSloganTip: '产品 Logo 下的欢迎语',
|
||||
defaultSlogan: '欢迎使用 MaxKB 智能知识库问答系统',
|
||||
defaultTip: '默认为 MaxKB 登录界面,支持自定义设置',
|
||||
defaultTip: '默认为 MaxKB 平台界面,支持自定义设置',
|
||||
platformSetting: '平台设置',
|
||||
showUserManual: '显示用户手册',
|
||||
showForum: '显示论坛求助',
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ export default {
|
|||
websiteSloganPlaceholder: '請輸入歡迎語',
|
||||
websiteSloganTip: '產品 Logo 下的歡迎語',
|
||||
defaultSlogan: '歡迎使用 MaxKB 智能知識庫問答系統',
|
||||
defaultTip: '默認為 MaxKB 登錄界面,支持自定義設置',
|
||||
defaultTip: '默認為 MaxKB 平台界面,支持自定義設置',
|
||||
platformSetting: '平台設置',
|
||||
showUserManual: '顯示用戶手冊',
|
||||
showForum: '顯示論壇求助',
|
||||
|
|
|
|||
Loading…
Reference in New Issue