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

Switch language button constantly grayed out #398

Open
Nekothegamer opened this issue Aug 6, 2024 · 3 comments
Open

Switch language button constantly grayed out #398

Nekothegamer opened this issue Aug 6, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@Nekothegamer
Copy link
Contributor

for some reason the switch languages button (in the middle) is always grayed out and I can't click it to perform the action

immagine

@rafaelmardojai
Copy link
Member

In this case (looks like DeepL), DeepL has different language codes for source and destination, for example for English they have en for source and en_US +en_GB for destination. To know if you can switch languages, Dialect checks if both languages are available in the opposite language lists, so in this case en_US (American English) is not a valid source language.

I guess we can improve this by adding a bit more of complexity to the switch logic.

@rafaelmardojai rafaelmardojai added the enhancement New feature or request label Aug 6, 2024
@Nekothegamer
Copy link
Contributor Author

So? Is there any progress on this?

@rafaelmardojai
Copy link
Member

@Nekothegamer not right now. I want to merge some refactoring (#401) before working on new code.

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

No branches or pull requests

2 participants