diff --git a/assets/Screenshots.png b/assets/Screenshots.png index 93e9d3d..adc70d3 100644 Binary files a/assets/Screenshots.png and b/assets/Screenshots.png differ diff --git a/www/api/date.js b/www/api/date.js index 3d387ec..a762ad8 100644 --- a/www/api/date.js +++ b/www/api/date.js @@ -39,7 +39,7 @@ export const dateUtils = { * @returns {string} */ localizedWeekday: (date) => { - return new Date(date).toLocaleString('default', {weekday: 'short'}); + return new Date(date).toLocaleString(window.navigator.language, {weekday: 'short'}); }, /** diff --git a/www/app/states/tracker/tracker.js b/www/app/states/tracker/tracker.js index c50ac0e..685921c 100644 --- a/www/app/states/tracker/tracker.js +++ b/www/app/states/tracker/tracker.js @@ -147,7 +147,7 @@ const addMonthLabel = (week, day) => { let month = ''; week.forEach((day) => { if (day.getDate() === 1) { - month = day.toLocaleString('default', {month: 'short'}); + month = day.toLocaleString(window.navigator.language, {month: 'short'}); } }); return month;