Fix logic of ShouldTranslate()

This commit is contained in:
VictoriousRaptor 2025-06-19 20:06:01 +08:00
parent b18959514d
commit d2dc307bc0

View file

@ -76,9 +76,7 @@ namespace Flow.Launcher.Infrastructure
public bool ShouldTranslate(string stringToTranslate)
{
return _settings.UseDoublePinyin ?
(!WordsHelper.HasChinese(stringToTranslate) && stringToTranslate.Length % 2 == 0) :
!WordsHelper.HasChinese(stringToTranslate);
return WordsHelper.HasChinese(stringToTranslate);
}
public (string translation, TranslationMapping map) Translate(string content)