Skip to content

Commit

Permalink
fix(patient): translation of field age
Browse files Browse the repository at this point in the history
  • Loading branch information
riandrys authored and akashkrishna619 committed Mar 28, 2024
1 parent 2b641dd commit 4f1285a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion healthcare/healthcare/doctype/patient/patient.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ let get_age = function (birth) {
let age = new Date();
age.setTime(ageMS);
let years = age.getFullYear() - 1970;
return years + ' Year(s) ' + age.getMonth() + ' Month(s) ' + age.getDate() + ' Day(s)';
return `${years} ${__('Year(s)')} ${age.getMonth()} ${__('Month(s)')} ${age.getDate()} ${__('Day(s)')}`
};

let create_vital_signs = function (frm) {
Expand Down

0 comments on commit 4f1285a

Please sign in to comment.