From d2dc307bc020ebd8205ce01ee8ae5e262703a943 Mon Sep 17 00:00:00 2001 From: VictoriousRaptor <10308169+VictoriousRaptor@users.noreply.github.com> Date: Thu, 19 Jun 2025 20:06:01 +0800 Subject: [PATCH] Fix logic of ShouldTranslate() --- Flow.Launcher.Infrastructure/PinyinAlphabet.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Flow.Launcher.Infrastructure/PinyinAlphabet.cs b/Flow.Launcher.Infrastructure/PinyinAlphabet.cs index ffb92a9bf..91c13ffad 100644 --- a/Flow.Launcher.Infrastructure/PinyinAlphabet.cs +++ b/Flow.Launcher.Infrastructure/PinyinAlphabet.cs @@ -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)