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

BUG: Opening Excalidraw ruins Obsidian layout #1364

Open
beh82 opened this issue Oct 10, 2023 · 3 comments
Open

BUG: Opening Excalidraw ruins Obsidian layout #1364

beh82 opened this issue Oct 10, 2023 · 3 comments

Comments

@beh82
Copy link

beh82 commented Oct 10, 2023

In short, my Excalidraw language is set to Persian (which I don't want it to be) and it ruins my Obsidian layout.
When I open a Excalidraw file, my Obsidian layout changes and elements get flipped horizontally (left to right) which not only changes my obsidian layout (even after closing the Excalidraw file) it ruins it because a lot of the UI elements are not compatible with right-alignment.

Before opening an Excalidraw file:
image

After opening an Excalidraw file:
image
(Even the close-maximize-minimize buttons are flipped.)

Before:
image

After:
image

Before:
image

After:
image

The problem persists even after closing the Excalidraw file tab. I have to close Obsidian and open it again to revert it back to normal.

Some of the Excalidraw menus and explanations are also in Persian (A right-to-left language), which I think is the source of the problem.
I never set the language to be Persian, my Windows and my Obsidian are both in English. I don't want the menus and stuff to be Persian, I looked through all the setting and I couldn't find any setting related to changing the Excalidraw language back to English (maybe I've missed it in which case, oops. but I did search a lot).
The only things that I have set to Persian, are my windows calendar, my Obsidian calendar plugin (to match the days of the week in my country), and I have Persian as a keyboard input language. I don't even think I have ever used Persian in any of my notes.

I'm not sure how to reproduce this effect, but here's all the information I think might/should be relevant:

  • Windows "time zone": (UTC +03:30) Tehran -> (Tehran is the capital of Iran, a Persian speaking country)
  • Windows "display language": English (US)
  • Windows "country or region": US
  • Windows "regional format": Persian (Iran)
  • Obsidian Calendar plugin "override locale": fa

SYSTEM INFO:
Obsidian version: v1.4.14
Installer version: v1.3.7
Operating system: Windows 10 Pro for Workstations 10.0.22000
Login status: not logged in
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 4
Plugins enabled: 4
1: Calendar v1.5.10
2: Hyphenation v0.0.3
3: Remotely Save v0.3.25
4: Excalidraw v1.9.23

Thank you for your time reading all of this.

@zsviczian
Copy link
Owner

I am assuming Calendar "override locale" is the root of the problem.
Looking into the sourcecode for calendar I can see Liam is changing the locale settings: https://github.com/liamcain/obsidian-calendar-ui/blob/c275987d032377bb141747da0f9db2c5cde2df03/src/localization.ts#L85-L109

I made a small change to Excalidraw in 1.9.25 - let's see if it resolves your issue.
Otherwise, I recommend trying https://github.com/TfTHacker/obsidian42-jump-to-date instead of Calendar.

@JDuchniewicz
Copy link

Same here, moreover I have some options being rendered in English and some in Polish, even though the only possible place the Polish locale is present is in the Calendar to set the timezone. Is there no alternative? I would rather refrain from changing the Calendar plugin.

@zsviczian
Copy link
Owner

To the best of my knowledge, this should be solved/fixed in the Calendar plugin.
I've stopped using the calendar plugin 2 years ago. I prefer @TfTHacker's Jump to Date plugin.

Try raising the issue with Liam on OMG and by opening an issue for the calendar plugin on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants