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;
|
||||
footerChecking: 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: {
|
||||
topbarTitle: string;
|
||||
@@ -361,6 +372,17 @@ export const en: Translations = {
|
||||
footerDegraded: 'Degraded',
|
||||
footerChecking: 'Checking…',
|
||||
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: {
|
||||
topbarTitle: 'Document Management',
|
||||
|
||||
@@ -132,6 +132,17 @@ export const zh: Translations = {
|
||||
footerDegraded: '降级运行',
|
||||
footerChecking: '检查中…',
|
||||
totalChunks: '向量分块总数',
|
||||
cardModels: 'AI 模型',
|
||||
testConnectionBtn: '测试连接',
|
||||
testingBtn: '测试中…',
|
||||
roleMainLlm: '主问答 LLM',
|
||||
roleHydeLlm: 'HyDE 查询增强',
|
||||
roleEmbedding: 'Embedding',
|
||||
roleReranker: 'Reranker',
|
||||
modelStatusNeverCalled: '尚未调用',
|
||||
modelStatusDisabled: '已禁用',
|
||||
sharesUsageWithMain: '与主 LLM 共用统计',
|
||||
lastCalledNever: '从未',
|
||||
},
|
||||
docs: {
|
||||
topbarTitle: '文档管理',
|
||||
|
||||
@@ -136,6 +136,8 @@ body {
|
||||
.status.warn::before { background: var(--warn); }
|
||||
.status.risk { color: var(--danger); background: var(--danger-bg); }
|
||||
.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::before { background: var(--info); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user