Open
Description
Describe the bug
The locale override feature appears to be broken in recent Obsidian insider versions (starting from v1.7.2 or v1.7.3?). This feature had been working flawlessly for years until recently in my environment. Rolling back to the public release of Obsidian seems to resolve the issue.
Steps to reproduce
-
Incorrect Daily Note Naming
- Despite selecting Override locale in the Calendar plugin settings (in my case, overriding "system locale(ja)" to "en-sg" with filename format YYYY-MM-DD_dddd), daily notes are created using the pre-override language.
- Example: Creates '2024-10-03_木曜日' instead of '2024-10-03_Thursday', breaking filename consistency with existing daily notes.
-
Settings Display Issues
- The Calendar plugin settings screen randomly fails to load completely (sometimes it does load fully; specific conditions unknown).
- Console displays the following error:
plugin:calendar:814 Uncaught TypeError: Cannot read properties of undefined (reading 'dow')
at CalendarSettingsTab.addWeekStartSetting (plugin:calendar:814:66)
at CalendarSettingsTab.display (plugin:calendar:775:14)
at t.openTab (app.js:1:3043848)
at HTMLDivElement.<anonymous> (app.js:1:3042168)
- File Access Issues After Plugin Reset
- After disabling and re-enabling the Calendar plugin:
- Settings screen loads completely
- New issue emerges similar to Issue #373
- New files can be created with the overridden language
- But, attempting to open these files through Periodic Notes command results in an error
- Console displays:
app.js:1 Uncaught (in promise) Error: File already exists. at t.<anonymous> (app.js:1:732669) at app.js:1:237228 at Object.next (app.js:1:237333) at a (app.js:1:236051)
- After disabling and re-enabling the Calendar plugin:
- Issue can be reproduced in a new vault with only Calendar plugin and Periodic Notes plugin installed.
- Rolling back to the public release of Obsidian (v1.6.7) seems to resolve the issue.
- Based on the symptoms, it appears that recent changes in Obsidian insider versions have caused the Calendar plugin to fail when attempting to override locales.
Screenshots
Settings screen fails to show all items
Environment (please specify)
OS
Windows 11
Obsidian Version (e.g. v0.10.6)
v1.7.3 (insider)