Allow specifying date locale for Templates and Daily Notes

Use case or problem

I use Obsidian for notes of multiple languages, and some of my notes are in English, while others are in German. I set Obsidian’s main language to English, but I would like for some notes (my daily notes, specifically) to display the date they were created on, but with the German words for weekdays and months.

Proposed solution

I think there are two solutions that would work for this problem, one of which is a lot less versatile.

  1. Add a “date locale” or “date language” option to the Templates and Daily Notes core plugins, which would change the locale of every date used by either plugin
  2. Add a custom way of formatting dates and including the locale you want the date to display with. Something like {{date:dddd, MMMM D, YYYY:de}}, for example.

That is exactly the problem I like to solve at the moment. The link to the moment.js documentation did not help that much. Using {{date:LLLL}} gets you half the way. But I would love to get rid of the time and just have the date in German.

I believe I have a similar issue. I just set up my daily note name top include [ddd]. On my iphone the name given to the file is [tue] (set to English with Swedish locale/date/time)

On my windows11 box I get [tis]. since I am using Sync I get 2 different files 8(.
Windows box is also set to English language but Swedish locale.

I’m not quite sure if this is the same issue discussed, if anyone have any other pointers; would be much appreciated.

/Richard

@Ellpeck A workaround would be to use the calendar plugin to set the moment locale to German. That will be global, but should only be used in templates and daily notes anyway, unless I’m missing something.

1 Like

Oh cool this works! I can now use stuff like {{date:dddd D MMMM YYYY}} and it will use Dutch locale