From 100f753e9b9a2f24432b30c0a4696f2cc13cecc8 Mon Sep 17 00:00:00 2001 From: VictoriousRaptor <10308169+VictoriousRaptor@users.noreply.github.com> Date: Sun, 13 Jul 2025 15:39:03 +0800 Subject: [PATCH] Fix ShouldTranslate() logic --- Flow.Launcher.Infrastructure/PinyinAlphabet.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher.Infrastructure/PinyinAlphabet.cs b/Flow.Launcher.Infrastructure/PinyinAlphabet.cs index f11a49613..c85c432dd 100644 --- a/Flow.Launcher.Infrastructure/PinyinAlphabet.cs +++ b/Flow.Launcher.Infrastructure/PinyinAlphabet.cs @@ -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)