chrisgrieser / obsidian-divide-and-conquer

An Obsidian plugin that provides commands for bulk enabling/disabling of plugins. Useful for debugging when you have many plugins.
MIT License
57 stars 5 forks source link

[Bug]: Button doesn't appear if Obsidian is not in english #18

Open Mara-Li opened 1 year ago

Mara-Li commented 1 year ago

Bug Description

Button doesn't appear either in community plugin or CSS snippets, if Obsidian is set in another language than English.

Relevant Screenshot

image

To Reproduce

Note : Obsidian must be in any language different than english. For example, my bug appear in French.

  1. Enable the plugin
  2. Try to refresh
  3. See console

Obsidian Version

1.0.3

Which editor are you using?

Checklist

Mara-Li commented 1 year ago

The bug is caused by this: https://github.com/chrisgrieser/obsidian-divide-and-conquer/blob/c2422b4ae5084d80a834bf8b0ee8e8572212454d/main.ts#L383

Because this object is not translated: https://github.com/chrisgrieser/obsidian-divide-and-conquer/blob/c2422b4ae5084d80a834bf8b0ee8e8572212454d/main.ts#L146-L153

I think the best methods is to don't take the name or get the translation from obsidian…