Fix ShouldTranslate() logic

This commit is contained in:
VictoriousRaptor 2025-07-13 15:39:03 +08:00
parent 64f3738c77
commit 100f753e9b

View file

@ -76,7 +76,8 @@ namespace Flow.Launcher.Infrastructure
public bool ShouldTranslate(string stringToTranslate)
{
return WordsHelper.HasChinese(stringToTranslate);
// If a string has Chinese characters, we don't need to translate it to pinyin.
return !WordsHelper.HasChinese(stringToTranslate);
}
public (string translation, TranslationMapping map) Translate(string content)