mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-08 14:29:15 +08:00
fix(i18n): update error message for model selection in multiple languages
This commit is contained in:
parent
f9c1aabe85
commit
9b678b0d95
@ -881,7 +881,7 @@
|
|||||||
"error": {
|
"error": {
|
||||||
"failed_to_create": "Knowledge base creation failed",
|
"failed_to_create": "Knowledge base creation failed",
|
||||||
"failed_to_edit": "Knowledge base editing 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}}",
|
"file_hint": "Support {{file_types}}",
|
||||||
"index_all": "Index All",
|
"index_all": "Index All",
|
||||||
|
|||||||
@ -881,7 +881,7 @@
|
|||||||
"error": {
|
"error": {
|
||||||
"failed_to_create": "ナレッジベースの作成に失敗しました",
|
"failed_to_create": "ナレッジベースの作成に失敗しました",
|
||||||
"failed_to_edit": "ナレッジベースの編集に失敗しました",
|
"failed_to_edit": "ナレッジベースの編集に失敗しました",
|
||||||
"model_invalid": "モデルが選択されていないか、削除されています"
|
"model_invalid": "モデルが選択されていません"
|
||||||
},
|
},
|
||||||
"file_hint": "{{file_types}} 形式をサポート",
|
"file_hint": "{{file_types}} 形式をサポート",
|
||||||
"index_all": "すべてをインデックス",
|
"index_all": "すべてをインデックス",
|
||||||
|
|||||||
@ -881,7 +881,7 @@
|
|||||||
"error": {
|
"error": {
|
||||||
"failed_to_create": "Создание базы знаний завершено с ошибками",
|
"failed_to_create": "Создание базы знаний завершено с ошибками",
|
||||||
"failed_to_edit": "Редактирование базы знаний завершено с ошибками",
|
"failed_to_edit": "Редактирование базы знаний завершено с ошибками",
|
||||||
"model_invalid": "Модель не выбрана или удалена"
|
"model_invalid": "Модель не выбрана"
|
||||||
},
|
},
|
||||||
"file_hint": "Поддерживаются {{file_types}}",
|
"file_hint": "Поддерживаются {{file_types}}",
|
||||||
"index_all": "Индексировать все",
|
"index_all": "Индексировать все",
|
||||||
|
|||||||
@ -881,7 +881,7 @@
|
|||||||
"error": {
|
"error": {
|
||||||
"failed_to_create": "知识库创建失败",
|
"failed_to_create": "知识库创建失败",
|
||||||
"failed_to_edit": "知识库编辑失败",
|
"failed_to_edit": "知识库编辑失败",
|
||||||
"model_invalid": "未选择模型或已删除"
|
"model_invalid": "未选择模型"
|
||||||
},
|
},
|
||||||
"file_hint": "支持 {{file_types}} 格式",
|
"file_hint": "支持 {{file_types}} 格式",
|
||||||
"index_all": "索引全部",
|
"index_all": "索引全部",
|
||||||
|
|||||||
@ -881,7 +881,7 @@
|
|||||||
"error": {
|
"error": {
|
||||||
"failed_to_create": "知識庫創建失敗",
|
"failed_to_create": "知識庫創建失敗",
|
||||||
"failed_to_edit": "知識庫編輯失敗",
|
"failed_to_edit": "知識庫編輯失敗",
|
||||||
"model_invalid": "未選擇模型或已刪除"
|
"model_invalid": "未選擇模型"
|
||||||
},
|
},
|
||||||
"file_hint": "支援 {{file_types}} 格式",
|
"file_hint": "支援 {{file_types}} 格式",
|
||||||
"index_all": "索引全部",
|
"index_all": "索引全部",
|
||||||
|
|||||||
@ -34,43 +34,6 @@ exports[`GeneralSettingsPanel > basic rendering > should match snapshot 1`] = `
|
|||||||
value="Test Knowledge Base"
|
value="Test Knowledge Base"
|
||||||
/>
|
/>
|
||||||
</div>
|
</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
|
<div
|
||||||
class="c1"
|
class="c1"
|
||||||
>
|
>
|
||||||
@ -170,6 +133,43 @@ exports[`GeneralSettingsPanel > basic rendering > should match snapshot 1`] = `
|
|||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</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
|
<div
|
||||||
class="c1"
|
class="c1"
|
||||||
>
|
>
|
||||||
|
|||||||
@ -47,21 +47,6 @@ const GeneralSettingsPanel: React.FC<GeneralSettingsPanelProps> = ({
|
|||||||
/>
|
/>
|
||||||
</SettingsItem>
|
</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>
|
<SettingsItem>
|
||||||
<div className="settings-label">
|
<div className="settings-label">
|
||||||
{t('models.embedding_model')}
|
{t('models.embedding_model')}
|
||||||
@ -106,6 +91,21 @@ const GeneralSettingsPanel: React.FC<GeneralSettingsPanelProps> = ({
|
|||||||
/>
|
/>
|
||||||
</SettingsItem>
|
</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>
|
<SettingsItem>
|
||||||
<div className="settings-label">
|
<div className="settings-label">
|
||||||
{t('knowledge.document_count')}
|
{t('knowledge.document_count')}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user