Fevol / obsidian-translate

Translate text and entire notes in Obsidian
MIT License
103 stars 6 forks source link

The translation service dropdown is empty #55

Closed froses closed 1 year ago

froses commented 1 year ago

User report

Description: The translation service dropdown is empty The translation service dropdown menu is empty. And the unique service tab visible is "FastText Settings".

TranslateSettings

Thanks so much for your excellent work!

Francesc Rosés


Debugger data (do not alter)

plugin_version: "1.4.6" platform: "macOS" framework_version: "1.3.7" obsidian_version: "1.4.2" selected_service: undefined

froses commented 1 year ago

If I reinstall the plugin, the issue is resolved. So, may be the problem is in the version upgrade.

Francesc Rosés

Fevol commented 1 year ago

Confirmed the bug, this is an oversight on my part introduced by these lines not correctly checking whether you actually already have languages being filtered: https://github.com/Fevol/obsidian-translate/blob/7dc98136d3a31ae1c963d06be7745d4f3e508158/src/main.ts#L134-L136

The reason why that the services are not visisible, is because they're being 'filtered' away. If you remove fasttext from filtered services (1), or reselect your desired services (2), they will show again: image

I'll fix the issue in the release, I'm sorry for the confusion that this caused! (EDIT: Hotfix applied, this shouldn't happen to other people updating now)