Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schedule Page: Fix weekdays trans #2873

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions ui/src/pages/schedule/schedule-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,13 +328,13 @@ $(function() {
if (data.recurringEvent) {
if (data.recurrenceType === 'Week' && data.recurrenceRepeatsOn) {
const daysOfTheWeek = [
displayPageTrans.daysOfTheWeek.monday,
displayPageTrans.daysOfTheWeek.tuesday,
displayPageTrans.daysOfTheWeek.wednesday,
displayPageTrans.daysOfTheWeek.thursday,
displayPageTrans.daysOfTheWeek.friday,
displayPageTrans.daysOfTheWeek.saturday,
displayPageTrans.daysOfTheWeek.sunday,
schedulePageTrans.daysOfTheWeek.monday,
schedulePageTrans.daysOfTheWeek.tuesday,
schedulePageTrans.daysOfTheWeek.wednesday,
schedulePageTrans.daysOfTheWeek.thursday,
schedulePageTrans.daysOfTheWeek.friday,
schedulePageTrans.daysOfTheWeek.saturday,
schedulePageTrans.daysOfTheWeek.sunday,
];

const recurrenceArray = data.recurrenceRepeatsOn.split(',');
Expand Down
9 changes: 9 additions & 0 deletions views/schedule-page.twig
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,15 @@
var schedulePageTrans = {
always: "{% trans "Always" %}",
adjustTimesofTimer: "{% trans "Adjust the times of this timer. To add or remove a day, use the Display Profile." %}",
daysOfTheWeek: {
monday: "{% trans "Monday" %}",
tuesday: "{% trans "Tuesday" %}",
wednesday: "{% trans "Wednesday" %}",
thursday: "{% trans "Thursday" %}",
friday: "{% trans "Friday" %}",
saturday: "{% trans "Saturday" %}",
sunday: "{% trans "Sunday" %}",
},
};
</script>

Expand Down