tisfeng/Easydict

πŸš€ Feature Request: Favorite Languages

Opened this issue Β· 13 comments

Please confirm the following:

  • I have carefully read the README
  • I have searched through the issues page and didn't find a similar feature request.(Including issue that has been closed)
  • Easydict has been upgraded to the latest version
  • I understand and agree to the above, and understand that the project maintainer has limited energy, issues that do not follow the rules may be ignored or closed directly

Feature description

Hello everyone.

Thank you so much for the great app. I love it and I suggested it to my friends.

Every day I use English, Turkish, and German. So I need to switch between three languages. However, it is hard to find in the long list.

On the other hand, they are not alphabetically sorted in English.

It would be great to have a favorite language support in the settings.
So when we open the translate window we can only list:

  • Auto
  • First Language
  • Second Language
  • Favorite 1
  • Favorite 2
  • ...

I have already searched the issues, there was an issue about the "last languages on top". But I think this feature is more suitable.

Thank you all again. Have a nice day.

Use case

Every day I use English, Turkish, and German. So I need to switch between three languages. However, it is hard to find in the long list.

Proposed solution (optional)

It would be great to have a favorite language support in the settings.
So when we open the translate window we can only list:

  • Auto
  • First Language
  • Second Language
  • Favorite 1
  • Favorite 2
  • ...

Are you willing to submit a PR to implement this feature

  • I'm willing to submit PR

Hello hakan-akgul, Thank you for your first issue contribution πŸŽ‰

Good suggestion, adding a favorite language option would be a really nice touch, thanks for the feedback 😊

Good suggestion, adding a favorite language option would be a really nice touch, thanks for the feedback 😊

I'm glad to hear that. I'm looking forward to the developments. Thank you.

@AkaShark Can you take this?

@AkaShark Can you take this? 你能ζŽ₯受这δΈͺε—οΌŸ

Sure, I will do it. I will be free this weekend.

It would be great to trim all the languages to only a small set, not everyone uses all these languages and the list is very long for switching.

It would be great to trim all the languages to only a small set, not everyone uses all these languages and the list is very long for switching.

At least, it would be better to sort alpabetically. I am lose while searching my native language πŸ˜„

I apologize for being preoccupied with something earlier. I will check this issue soon and break down this feature into three separate features.

  1. In the settings, the user can select up to two favorite languages. When the user selects a language, the favorites are displayed at the top of the languages list like
  • Auto
  • First Language
  • Second Language
  • Favorite 1
  • Favorite 2
    ...
  1. Add a search field to find a language by name in the dropdown menu.
  2. Add information about language service support for each language.

For the third feature, I'm unsure about the display. Adding the information after each language may lead to excessive content in each cell. Does anyone have a good idea for this display?

@tisfeng There’s something else important. Do I need to do this after #575 or I can start trying recently?

Add information about language service support for each language.

If it's not convenient to display here, we can show the languages they support later on the Settings - Services page.

Do I need to do this after #575 or I can start trying recently?

This can be started now. We can add a 'Favorite Languages' option as an entry point in the Settings - General page.

In the settings, the user can select up to two favorite languages. When the user selects a language, the favorites are displayed at the top of the languages list like

No, it's not like that. The 'Favorite Languages' is actually a list of commonly used languages; it is an array where users can select multiple languages as their Favorite Languages.

Every day I use English, Turkish, and German. So I need to switch between three languages. However, it is hard to find in the long list.

"Favorite Languages" is designed to solve this problem. In the query window, when the user clicks on the language selection, we should prioritize displaying "Favorite Languages" to make it convenient for users to quickly choose. Other languages will be placed in the submenu.

image

"Favorite Languages" may cause ambiguity, it is recommended to use "Common Languages" instead.

This is a UI design for reference, we can make corresponding modifications according to our needs.

image

@tisfeng Thanks for your explanation. I got it, and I will continue to push this issue.