dotnet / ResXResourceManager

Manage localization of all ResX-Based resources in one central place.
MIT License
1.29k stars 211 forks source link

Automatic suggestion on language selection #604

Closed etherfield closed 8 months ago

etherfield commented 8 months ago

Resolves #264

Took me quite a few hours browsing through sources to find out a solution. It turned out it's not possible to filter by multiple fields because the code looks up one field in the collection. A bypass solution would be to create a new field and double the number of CultureInfo items in the Languages collection which looks ugly.

So instead I filter the collection and open the dropdown. Despite there are hundreds of items it works fast because of the virtualized panel. Filtering occurs by Name (e.g. en-US) and DisplayName (English (United States)).

DisplayName Name

One more addressed issue is that the text becomes selected as soon as the dropdown is opened.

tom-englert commented 8 months ago

Looks promising! Can you rebase your changes on master branch? You start point is really outdated.

etherfield commented 8 months ago

Sure. Rebased.

tom-englert commented 8 months ago

👍