Skip to content

Commit ebcd7d5

Browse files
Fix ShouldTranslate() logic
- Check settings or it won't work as expected
1 parent fdbb183 commit ebcd7d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Flow.Launcher.Infrastructure/PinyinAlphabet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ private void LoadDoublePinyinTable()
7777
public bool ShouldTranslate(string stringToTranslate)
7878
{
7979
// If a string has Chinese characters, we don't need to translate it to pinyin.
80-
return !WordsHelper.HasChinese(stringToTranslate);
80+
return _settings.ShouldUsePinyin && !WordsHelper.HasChinese(stringToTranslate);
8181
}
8282

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

0 commit comments

Comments
 (0)