diff --git a/CHANGELOG.md b/CHANGELOG.md index 299e51e5d1..85ddd47759 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ developers to maintain and readjust their custom modifications on the main proje ### Fixed - Fix the date parsing issue on Safari web browsers during the booking process (#1584) +- Fix working plan configuration am/pm hour parsing so that it works in all languages (#1606) ## [1.5.0] - 2024-07-07 diff --git a/assets/js/utils/ui.js b/assets/js/utils/ui.js index 2b573f3287..1cfe9df7f4 100644 --- a/assets/js/utils/ui.js +++ b/assets/js/utils/ui.js @@ -131,7 +131,7 @@ window.App.Utils.UI = (function () { weekAbbreviation: lang('week_short'), scrollTitle: lang('scroll_to_increment'), toggleTitle: lang('click_to_toggle'), - amPM: [lang('am'), lang('pm')], + amPM: ['am', 'pm'], yearAriaLabel: lang('year'), monthAriaLabel: lang('month'), hourAriaLabel: lang('hour'), diff --git a/assets/js/utils/working_plan.js b/assets/js/utils/working_plan.js index dd02937ef5..eb11b8a6cd 100755 --- a/assets/js/utils/working_plan.js +++ b/assets/js/utils/working_plan.js @@ -43,7 +43,7 @@ App.Utils.WorkingPlan = (function () { enableSubmit = false; /** - * Setup the dom elements of a given working plan. + * Set up the dom elements of a given working plan. * * @param {Object} workingPlan Contains the working hours and breaks for each day of the week. */