reeses-sodium-options icon indicating copy to clipboard operation
reeses-sodium-options copied to clipboard

Search problem in some languages

Open ItIsNotAPlayer opened this issue 1 year ago • 3 comments

When I set the language to Simplified Chinese(zh_cn), enter any character in the search bar, then brightness, full screen, clouds, weather and some other options is always highlighted. I have tried other languages and found the options that is highlighted are different. By the way, the search bar can't be recognize by other mods as a text field.

ItIsNotAPlayer avatar Sep 22 '23 12:09 ItIsNotAPlayer

I have tried other languages and found the options that is highlighted are different.

Unfortunately, I can't really control what is highlighted when using fuzzy search, translations strings may vary across languages by alot.

By the way, the search bar can't be recognize by other mods as a text field.

It's not a traditional text field since it's a custom component, is there any reason why this would be a problem?

FlashyReese avatar Sep 22 '23 13:09 FlashyReese

It's not a traditional text field since it's a custom component, is there any reason why this would be a problem?

I use the mods IMBlocker and ContingameIME because of the Chinese IME. With them, I can't enter Chinese in the search bar. I think it doesn't matter if the options aren't highlighted correctly in Chinese.

ItIsNotAPlayer avatar Sep 23 '23 06:09 ItIsNotAPlayer

I took a look at their code, this will likely need to be done on their end since they mixin directly into other components from other mods as well.

As for the search, I will take a look and try and fix it when I have time.

FlashyReese avatar Sep 23 '23 15:09 FlashyReese