feat: Adding simplified chinese localization to the app

This commit is contained in:
gauvainboiche
2026-08-01 22:20:20 +02:00
parent 4ff0906ec6
commit 686e77654d
4 changed files with 60 additions and 2 deletions
+2
View File
@@ -48,8 +48,10 @@
<div class="flex items-center gap-1 bg-slate-900 border border-slate-700/70 rounded-xl px-2 py-1"> <div class="flex items-center gap-1 bg-slate-900 border border-slate-700/70 rounded-xl px-2 py-1">
<span class="text-xs">🌐</span> <span class="text-xs">🌐</span>
<select id="selectLang" class="bg-transparent text-xs font-bold text-slate-300 outline-none cursor-pointer"> <select id="selectLang" class="bg-transparent text-xs font-bold text-slate-300 outline-none cursor-pointer">
<!-- Add language here -->>
<option value="fr" class="bg-slate-900">FR</option> <option value="fr" class="bg-slate-900">FR</option>
<option value="en" class="bg-slate-900">EN</option> <option value="en" class="bg-slate-900">EN</option>
<option value="cn" class="bg-slate-900">CN</option>
</select> </select>
</div> </div>
+56
View File
@@ -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 生成。请仔细核对"
}
}
+1 -1
View File
@@ -51,6 +51,6 @@
"date": "Simulation Date: ", "date": "Simulation Date: ",
"mode": "Selected Mode: ", "mode": "Selected Mode: ",
"patient_info": "Patient: Weight {weight} kg | Age {age} yrs | Height {height} cm", "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."
} }
} }
+1 -1
View File
@@ -51,6 +51,6 @@
"date": "Date de simulation : ", "date": "Date de simulation : ",
"mode": "Mode sélectionné : ", "mode": "Mode sélectionné : ",
"patient_info": "Patient : Poids {weight} kg | Âge {age} ans | Taille {height} cm", "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."
} }
} }