From 686e77654dac566384eb2f0a127a4740f5ee82f8 Mon Sep 17 00:00:00 2001 From: gauvainboiche Date: Sat, 1 Aug 2026 22:20:20 +0200 Subject: [PATCH] feat: Adding simplified chinese localization to the app --- frontend/index.html | 2 ++ frontend/locales/cn.json | 56 ++++++++++++++++++++++++++++++++++++++++ frontend/locales/en.json | 2 +- frontend/locales/fr.json | 2 +- 4 files changed, 60 insertions(+), 2 deletions(-) create mode 100644 frontend/locales/cn.json diff --git a/frontend/index.html b/frontend/index.html index ab5d86b..f329d6a 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -48,8 +48,10 @@
🌐
diff --git a/frontend/locales/cn.json b/frontend/locales/cn.json new file mode 100644 index 0000000..bee91c1 --- /dev/null +++ b/frontend/locales/cn.json @@ -0,0 +1,56 @@ +{ + "app": { + "title": "药代动力学", + "version": "v1.00 • 乔治·米翁博士" + }, + "nav": { + "mode_esk": "艾斯克塔明", + "mode_rac": "消旋体", + "calculator": "计算器", + "export_pdf": "导出 PDF", + "raz": "重置" + }, + "patient": { + "title": "患者参数", + "weight": "体重 (kg)", + "age": "年龄 (岁)", + "height": "身高 (cm)", + "concentration": "药物浓度 (mg/mL)" + }, + "models": { + "title": "药代动力学模型" + }, + "timeline": { + "title": "给药与输液时间线 (0 - 300 分钟)", + "scroll_hint": "水平滚动 👉", + "bolus": "bolus 剂量 (mg)", + "perf": "输注速率 (mg/kg/h)" + }, + "calculator": { + "title": "计算器与剂量换算", + "patient_weight": "患者体重", + "drug_conc": "浓度", + "bolus_header": "推注剂量换算", + "total_dose": "总剂量 (mg)", + "relative_dose": "相对剂量 (mg/kg)", + "infusion_header": "输液换算", + "rate_mgkgh": "速率 (mg/kg/h)", + "rate_ugkgmin": "速率 (µg/kg/min)" + }, + "zones": { + "inactive": "非活性期", + "anti_hyperalgesic": "抗痛觉过敏期", + "analgesia": "镇痛期", + "psychedelic": "致幻期", + "emergence": "苏醒期", + "narcosis": "麻醉", + "excessive": "过量" + }, + "pdf": { + "title": "KetaPK - 药代动力学模拟报告", + "date": "模拟日期:", + "mode": "所选模式:", + "patient_info": "患者:体重 {weight} 公斤 | 年龄 {age} 岁 | 身高 {height} 厘米", + "disclaimer": "由 KetaPK Web 生成。请仔细核对" + } +} \ No newline at end of file diff --git a/frontend/locales/en.json b/frontend/locales/en.json index a55a5ac..366b652 100644 --- a/frontend/locales/en.json +++ b/frontend/locales/en.json @@ -51,6 +51,6 @@ "date": "Simulation Date: ", "mode": "Selected Mode: ", "patient_info": "Patient: Weight {weight} kg | Age {age} yrs | Height {height} cm", - "disclaimer": "Generated by KetaPK Web. For educational purposes only." + "disclaimer": "Generated by KetaPK Web. Please double-check." } } \ No newline at end of file diff --git a/frontend/locales/fr.json b/frontend/locales/fr.json index 6f92220..33191e4 100644 --- a/frontend/locales/fr.json +++ b/frontend/locales/fr.json @@ -51,6 +51,6 @@ "date": "Date de simulation : ", "mode": "Mode sélectionné : ", "patient_info": "Patient : Poids {weight} kg | Âge {age} ans | Taille {height} cm", - "disclaimer": "Ce document est généré par KétaPK Web. Destiné uniquement à l'enseignement." + "disclaimer": "Ce document est généré par KétaPK Web. Veuillez vérifier les sorties avant toute action." } } \ No newline at end of file