diff --git a/nvd-yew/i18n.json b/nvd-yew/i18n.json index b63d643..634cd11 100644 --- a/nvd-yew/i18n.json +++ b/nvd-yew/i18n.json @@ -1 +1 @@ -{"Access Complexity":{"zh":"访问复杂度"},"Access Vector":{"zh":"访问途径"},"AdjacentNetwork":{"zh":"相邻网络"},"Attack Complexity":{"zh":"攻击复杂度"},"Attack Vector":{"zh":"攻击途径"},"Authentication":{"zh":"认证"},"Availability Impact":{"zh":"可用性影响度"},"CVE":{"zh":"CVE编号"},"CVSS":{"zh":"评分"},"CWE":{"zh":"弱点"},"Changed":{"zh":"更改"},"Comments":{"zh":"评论"},"Complete":{"zh":"完全"},"Confidentiality Impact":{"zh":"机密性影响度"},"Configurations":{"zh":"影响组件"},"Count":{"zh":"条"},"Entries":{"zh":"共"},"High":{"zh":"高"},"Home":{"zh":"主页"},"Integrity Impact":{"zh":"完整性影响度"},"KnowledgeBase":{"zh":"知识库"},"Lang":{"zh":"语言"},"Link":{"zh":"链接"},"Local":{"zh":"本地网络"},"Low":{"zh":"低"},"Match":{"zh":"影响版本"},"Medium":{"zh":"中"},"Meta":{"zh":"元数据"},"Multiple":{"zh":"多个"},"Name":{"zh":"名称"},"Network":{"zh":"网络"},"Next":{"zh":"下一页"},"None":{"zh":"无"},"Operator":{"zh":"逻辑"},"Partial":{"zh":"部分"},"Path":{"zh":"路径"},"Physical":{"zh":"物理"},"Prev":{"zh":"上一页"},"Privileges Required":{"zh":"权限要求"},"Products":{"zh":"产品"},"References":{"zh":"参考"},"Required":{"zh":"需要"},"Resource":{"zh":"资源"},"Scope":{"zh":"作用域属性"},"Show":{"zh":"展示"},"Single":{"zh":"单个"},"Source Code":{"zh":"源码"},"Sponsor":{"zh":"赞助"},"Tags":{"zh":"标签"},"To":{"zh":"到"},"Unchanged":{"zh":"未更改"},"Updated":{"zh":"更新时间"},"User Interaction":{"zh":"用户交互"},"Vendors":{"zh":"厂商"},"Verified":{"zh":"是否已验证"},"Weaknesses":{"zh":"弱点"}} \ No newline at end of file +{"Access Complexity":{"zh":"访问复杂度"},"Access Vector":{"zh":"访问途径"},"AdjacentNetwork":{"zh":"相邻网络"},"Attack Complexity":{"zh":"攻击复杂度"},"Attack Vector":{"zh":"攻击途径"},"Authentication":{"zh":"认证"},"Availability Impact":{"zh":"可用性影响度"},"CPE":{"zh":"通用平台枚举"},"CVE":{"zh":"CVE编号"},"CVSS":{"zh":"评分"},"CWE":{"zh":"脆弱点"},"Changed":{"zh":"更改"},"Comments":{"zh":"评论"},"Complete":{"zh":"完全"},"Confidentiality Impact":{"zh":"机密性影响度"},"Configurations":{"zh":"影响产品"},"Count":{"zh":"条"},"Entries":{"zh":"共"},"High":{"zh":"高"},"Home":{"zh":"主页"},"Integrity Impact":{"zh":"完整性影响度"},"KnowledgeBase":{"zh":"知识库"},"Lang":{"zh":"语言"},"Link":{"zh":"链接"},"Local":{"zh":"本地网络"},"Low":{"zh":"低"},"Match":{"zh":"影响版本"},"Medium":{"zh":"中"},"Meta":{"zh":"元数据"},"Multiple":{"zh":"多个"},"Name":{"zh":"名称"},"Network":{"zh":"网络"},"Next":{"zh":"下一页"},"None":{"zh":"无"},"Operator":{"zh":"逻辑"},"Partial":{"zh":"部分"},"Path":{"zh":"路径"},"Physical":{"zh":"物理"},"Prev":{"zh":"上一页"},"Privileges Required":{"zh":"权限要求"},"Product":{"zh":"产品"},"Products":{"zh":"产品"},"References":{"zh":"参考"},"Required":{"zh":"需要"},"Resource":{"zh":"资源"},"Scope":{"zh":"作用域属性"},"Show":{"zh":"展示"},"Single":{"zh":"单个"},"Source":{"zh":"来源"},"Source Code":{"zh":"源码"},"Sponsor":{"zh":"赞助"},"Tags":{"zh":"标签"},"To":{"zh":"到"},"Unchanged":{"zh":"未更改"},"Updated":{"zh":"更新时间"},"User Interaction":{"zh":"用户交互"},"Vendor":{"zh":"厂商"},"Vendors":{"zh":"厂商"},"Verified":{"zh":"是否已验证"},"Version":{"zh":"版本"},"Weaknesses":{"zh":"脆弱点"}} \ No newline at end of file diff --git a/nvd-yew/i18n.yaml b/nvd-yew/i18n.yaml index 0684dc2..a8a7350 100644 --- a/nvd-yew/i18n.yaml +++ b/nvd-yew/i18n.yaml @@ -11,7 +11,7 @@ Vendors: Products: zh: 产品 CWE: - zh: 弱点 + zh: 脆弱点 CVSS: zh: 评分 Updated: @@ -25,11 +25,11 @@ Resource: Tags: zh: 标签 Weaknesses: - zh: 弱点 + zh: 脆弱点 KnowledgeBase: zh: 知识库 Configurations: - zh: 影响组件 + zh: 影响产品 Comments: zh: 评论 Operator: @@ -109,4 +109,14 @@ Unchanged: Changed: zh: 更改 Required: - zh: 需要 \ No newline at end of file + zh: 需要 +Source: + zh: 来源 +Vendor: + zh: 厂商 +Product: + zh: 产品 +CPE: + zh: 通用平台枚举 +Version: + zh: 版本 \ No newline at end of file diff --git a/nvd-yew/src/component/knowledge_base.rs b/nvd-yew/src/component/knowledge_base.rs index 4a42cf8..4eb726f 100644 --- a/nvd-yew/src/component/knowledge_base.rs +++ b/nvd-yew/src/component/knowledge_base.rs @@ -2,7 +2,7 @@ use yew::prelude::*; use nvd_model::knowledge_base::{KnowledgeBase, QueryKnowledgeBase}; -use crate::component::{KBRow, KbProps}; +use crate::component::{use_translation, KBRow, KbProps}; use crate::console_log; use crate::modules::Paging; use crate::services::kb::knowledge_base_list; @@ -76,16 +76,7 @@ impl Component for CVEKnowledgeBaseInfoList { return html! {
{"Name"} | -{"Source"} | -{"Verified"} | -{"Path"} | -{"Meta"} | -{"Updated"} | -
---|---|---|---|---|---|
{i18n.t("Name")} | +{i18n.t("Source")} | +{i18n.t("Verified")} | +{i18n.t("Path")} | +{i18n.t("Meta")} | +{i18n.t("Updated")} | +