Skip to content

Commit d2dc307

Browse files
Fix logic of ShouldTranslate()
1 parent b189595 commit d2dc307

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Flow.Launcher.Infrastructure/PinyinAlphabet.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ private void LoadDoublePinyinTable()
7676

7777
public bool ShouldTranslate(string stringToTranslate)
7878
{
79-
return _settings.UseDoublePinyin ?
80-
(!WordsHelper.HasChinese(stringToTranslate) && stringToTranslate.Length % 2 == 0) :
81-
!WordsHelper.HasChinese(stringToTranslate);
79+
return WordsHelper.HasChinese(stringToTranslate);
8280
}
8381

8482
public (string translation, TranslationMapping map) Translate(string content)

0 commit comments

Comments
 (0)