Update migrated js to ts and shadcn

This commit is contained in:
2025-11-26 20:00:39 +00:00
parent d5938046a2
commit 551ba9fd62
51 changed files with 1702 additions and 937 deletions

83
src/locales/en.ts Normal file
View File

@@ -0,0 +1,83 @@
// English translations
export const en = {
// App header and navigation
appTitle: "Medication Plan Assistant",
appSubtitle: "Simulation for Lisdexamfetamine (LDX) and d-Amphetamine (d-amph)",
// Chart view buttons
dAmphetamine: "d-Amphetamine",
lisdexamfetamine: "Lisdexamfetamine",
both: "Both",
// Language selector
language: "Language",
english: "English",
german: "Deutsch",
// Dose Schedule
myPlan: "My Plan",
morning: "Morning",
midday: "Midday",
afternoon: "Afternoon",
evening: "Evening",
night: "Night",
// Deviations
deviationsFromPlan: "Deviations from Plan",
addDeviation: "Add Deviation",
day: "Day",
additional: "Additional",
additionalTooltip: "Mark this if it was an extra dose instead of a replacement for a planned one.",
// Suggestions
whatIf: "What if?",
suggestion: "Suggestion",
instead: "instead",
at: "at",
applySuggestion: "Apply suggestion as deviation",
noSignificantCorrection: "No significant correction necessary.",
noSuitableNextDose: "No suitable next dose found for correction.",
// Chart
concentration: "Concentration (ng/ml)",
hour: "h",
min: "Min",
max: "Max",
// Settings
advancedSettings: "Advanced Settings",
show24hTimeAxis: "Show 24h time axis",
simulationDuration: "Simulation Duration",
days: "Days",
displayedDays: "Displayed Days",
yAxisRange: "Y-Axis Range",
yAxisRangeAutoButton: "A",
yAxisRangeAutoButtonTitle: "Determine range automatically based on data range",
auto: "Auto",
therapeuticRange: "Therapeutic Range",
dAmphetamineParameters: "d-Amphetamine Parameters",
halfLife: "Half-life",
hours: "h",
lisdexamfetamineParameters: "Lisdexamfetamine Parameters",
conversionHalfLife: "Conversion Half-life",
absorptionRate: "Absorption Rate",
faster: "(faster >)",
resetAllSettings: "Reset All Settings",
// Units
mg: "mg",
ngml: "ng/ml",
// Reset confirmation
resetConfirmation: "Are you sure you want to reset all settings to default values? This cannot be undone.",
// Footer disclaimer
importantNote: "Important Notice",
disclaimer: "This tool is for illustration and information purposes only. It is not a medical device and does not replace consultation with a doctor or pharmacist. All calculations are simulations based on general pharmacokinetic models and may differ significantly from individual factors. Please consult your treating physician before making adjustments to your medication.",
// Field validation
errorNumberRequired: "Please enter a valid number.",
errorTimeRequired: "Please enter a valid time."
};
export default en;