fix(i18n): update error message for model selection in multiple languages

This commit is contained in:
kangfenmao 2025-08-01 10:32:13 +08:00
parent f9c1aabe85
commit 9b678b0d95
7 changed files with 57 additions and 57 deletions

View File

@ -881,7 +881,7 @@
"error": {
"failed_to_create": "Knowledge base creation failed",
"failed_to_edit": "Knowledge base editing failed",
"model_invalid": "No model selected or deleted"
"model_invalid": "No model selected"
},
"file_hint": "Support {{file_types}}",
"index_all": "Index All",

View File

@ -881,7 +881,7 @@
"error": {
"failed_to_create": "ナレッジベースの作成に失敗しました",
"failed_to_edit": "ナレッジベースの編集に失敗しました",
"model_invalid": "モデルが選択されていないか、削除されています"
"model_invalid": "モデルが選択されていません"
},
"file_hint": "{{file_types}} 形式をサポート",
"index_all": "すべてをインデックス",

View File

@ -881,7 +881,7 @@
"error": {
"failed_to_create": "Создание базы знаний завершено с ошибками",
"failed_to_edit": "Редактирование базы знаний завершено с ошибками",
"model_invalid": "Модель не выбрана или удалена"
"model_invalid": "Модель не выбрана"
},
"file_hint": "Поддерживаются {{file_types}}",
"index_all": "Индексировать все",

View File

@ -881,7 +881,7 @@
"error": {
"failed_to_create": "知识库创建失败",
"failed_to_edit": "知识库编辑失败",
"model_invalid": "未选择模型或已删除"
"model_invalid": "未选择模型"
},
"file_hint": "支持 {{file_types}} 格式",
"index_all": "索引全部",

View File

@ -881,7 +881,7 @@
"error": {
"failed_to_create": "知識庫創建失敗",
"failed_to_edit": "知識庫編輯失敗",
"model_invalid": "未選擇模型或已刪除"
"model_invalid": "未選擇模型"
},
"file_hint": "支援 {{file_types}} 格式",
"index_all": "索引全部",

View File

@ -34,43 +34,6 @@ exports[`GeneralSettingsPanel > basic rendering > should match snapshot 1`] = `
value="Test Knowledge Base"
/>
</div>
<div
class="c1"
>
<div
class="settings-label"
>
settings.tool.preprocess.title
<span
data-placement="right"
data-testid="info-tooltip"
title="settings.tool.preprocess.tooltip"
>
</span>
</div>
<select
data-allow-clear="true"
data-placeholder="settings.tool.preprocess.provider_placeholder"
data-testid="preprocess-select"
>
<option
value=""
>
Select option
</option>
<option
value="doc2x"
>
Doc2X
</option>
<option
value="mistral"
>
Mistral
</option>
</select>
</div>
<div
class="c1"
>
@ -170,6 +133,43 @@ exports[`GeneralSettingsPanel > basic rendering > should match snapshot 1`] = `
</option>
</select>
</div>
<div
class="c1"
>
<div
class="settings-label"
>
settings.tool.preprocess.title
<span
data-placement="right"
data-testid="info-tooltip"
title="settings.tool.preprocess.tooltip"
>
</span>
</div>
<select
data-allow-clear="true"
data-placeholder="settings.tool.preprocess.provider_placeholder"
data-testid="preprocess-select"
>
<option
value=""
>
Select option
</option>
<option
value="doc2x"
>
Doc2X
</option>
<option
value="mistral"
>
Mistral
</option>
</select>
</div>
<div
class="c1"
>

View File

@ -47,21 +47,6 @@ const GeneralSettingsPanel: React.FC<GeneralSettingsPanelProps> = ({
/>
</SettingsItem>
<SettingsItem>
<div className="settings-label">
{t('settings.tool.preprocess.title')}
<InfoTooltip title={t('settings.tool.preprocess.tooltip')} placement="right" />
</div>
<Select
value={selectedDocPreprocessProvider?.id}
style={{ width: '100%' }}
onChange={handleDocPreprocessChange}
placeholder={t('settings.tool.preprocess.provider_placeholder')}
options={docPreprocessSelectOptions}
allowClear
/>
</SettingsItem>
<SettingsItem>
<div className="settings-label">
{t('models.embedding_model')}
@ -106,6 +91,21 @@ const GeneralSettingsPanel: React.FC<GeneralSettingsPanelProps> = ({
/>
</SettingsItem>
<SettingsItem>
<div className="settings-label">
{t('settings.tool.preprocess.title')}
<InfoTooltip title={t('settings.tool.preprocess.tooltip')} placement="right" />
</div>
<Select
value={selectedDocPreprocessProvider?.id}
style={{ width: '100%' }}
onChange={handleDocPreprocessChange}
placeholder={t('settings.tool.preprocess.provider_placeholder')}
options={docPreprocessSelectOptions}
allowClear
/>
</SettingsItem>
<SettingsItem>
<div className="settings-label">
{t('knowledge.document_count')}