Templater and Calendar plugin issue

Hello everyone! I’ve encountered an issue with two plugins: templater and calendar. Let’s go through them one by one.

Templater

The problem with Templater is that the week starts on Sunday, even though my system settings (locale) have the week starting on Monday. So, when I try to use the template:

<% moment.weekdays() %>  

The week starts with “Sun,” which prevents me from properly automating some notes.

Some suggested that this might be related to the calendar plugin. I went to check it out—and indeed, there’s another issue there.

Calendar

The settings are missing. I’ve attached a screenshot below. They only appear if I toggle the plugin on and off, but after applying any template, the settings disappear again. I’m not sure what could be causing this.

Here is I’m talking about:

After restart:

As you can see Calendar plugin have “Monday” as start of week.

Does anyone know what’s going on?

moved to help.

Try <% moment.weekdays(true) %> instead

Also, you may need to set <% moment.locale(‘…’) before the weekdays command.

Can you explain it to me?

I don’t get it.

See the link below, by adding true as a parameter it forces the weekdays function to use the locale definition of the first day of the week. Which might not be the default Sunday. However, if your locale is wrong you’ll need to set the locale first…