feat: add i18n keys for AI Models card and fix missing .status.error CSS
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -131,6 +131,17 @@ export interface Translations {
|
|||||||
footerDegraded: string;
|
footerDegraded: string;
|
||||||
footerChecking: string;
|
footerChecking: string;
|
||||||
totalChunks: string;
|
totalChunks: string;
|
||||||
|
cardModels: string;
|
||||||
|
testConnectionBtn: string;
|
||||||
|
testingBtn: string;
|
||||||
|
roleMainLlm: string;
|
||||||
|
roleHydeLlm: string;
|
||||||
|
roleEmbedding: string;
|
||||||
|
roleReranker: string;
|
||||||
|
modelStatusNeverCalled: string;
|
||||||
|
modelStatusDisabled: string;
|
||||||
|
sharesUsageWithMain: string;
|
||||||
|
lastCalledNever: string;
|
||||||
};
|
};
|
||||||
docs: {
|
docs: {
|
||||||
topbarTitle: string;
|
topbarTitle: string;
|
||||||
@@ -361,6 +372,17 @@ export const en: Translations = {
|
|||||||
footerDegraded: 'Degraded',
|
footerDegraded: 'Degraded',
|
||||||
footerChecking: 'Checking…',
|
footerChecking: 'Checking…',
|
||||||
totalChunks: 'Total vector chunks',
|
totalChunks: 'Total vector chunks',
|
||||||
|
cardModels: 'AI Models',
|
||||||
|
testConnectionBtn: 'Test connection',
|
||||||
|
testingBtn: 'Testing…',
|
||||||
|
roleMainLlm: 'Main answer LLM',
|
||||||
|
roleHydeLlm: 'HyDE query expansion',
|
||||||
|
roleEmbedding: 'Embedding',
|
||||||
|
roleReranker: 'Reranker',
|
||||||
|
modelStatusNeverCalled: 'Not called yet',
|
||||||
|
modelStatusDisabled: 'Disabled',
|
||||||
|
sharesUsageWithMain: 'Shares usage with main LLM',
|
||||||
|
lastCalledNever: 'Never',
|
||||||
},
|
},
|
||||||
docs: {
|
docs: {
|
||||||
topbarTitle: 'Document Management',
|
topbarTitle: 'Document Management',
|
||||||
|
|||||||
@@ -132,6 +132,17 @@ export const zh: Translations = {
|
|||||||
footerDegraded: '降级运行',
|
footerDegraded: '降级运行',
|
||||||
footerChecking: '检查中…',
|
footerChecking: '检查中…',
|
||||||
totalChunks: '向量分块总数',
|
totalChunks: '向量分块总数',
|
||||||
|
cardModels: 'AI 模型',
|
||||||
|
testConnectionBtn: '测试连接',
|
||||||
|
testingBtn: '测试中…',
|
||||||
|
roleMainLlm: '主问答 LLM',
|
||||||
|
roleHydeLlm: 'HyDE 查询增强',
|
||||||
|
roleEmbedding: 'Embedding',
|
||||||
|
roleReranker: 'Reranker',
|
||||||
|
modelStatusNeverCalled: '尚未调用',
|
||||||
|
modelStatusDisabled: '已禁用',
|
||||||
|
sharesUsageWithMain: '与主 LLM 共用统计',
|
||||||
|
lastCalledNever: '从未',
|
||||||
},
|
},
|
||||||
docs: {
|
docs: {
|
||||||
topbarTitle: '文档管理',
|
topbarTitle: '文档管理',
|
||||||
|
|||||||
@@ -136,6 +136,8 @@ body {
|
|||||||
.status.warn::before { background: var(--warn); }
|
.status.warn::before { background: var(--warn); }
|
||||||
.status.risk { color: var(--danger); background: var(--danger-bg); }
|
.status.risk { color: var(--danger); background: var(--danger-bg); }
|
||||||
.status.risk::before { background: var(--danger); }
|
.status.risk::before { background: var(--danger); }
|
||||||
|
.status.error { color: var(--danger); background: var(--danger-bg); }
|
||||||
|
.status.error::before { background: var(--danger); }
|
||||||
.status.info { color: var(--info); background: var(--info-bg); }
|
.status.info { color: var(--info); background: var(--info-bg); }
|
||||||
.status.info::before { background: var(--info); }
|
.status.info::before { background: var(--info); }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user