We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64f3738 commit 100f753Copy full SHA for 100f753
Flow.Launcher.Infrastructure/PinyinAlphabet.cs
@@ -76,7 +76,8 @@ private void LoadDoublePinyinTable()
76
77
public bool ShouldTranslate(string stringToTranslate)
78
{
79
- return WordsHelper.HasChinese(stringToTranslate);
+ // If a string has Chinese characters, we don't need to translate it to pinyin.
80
+ return !WordsHelper.HasChinese(stringToTranslate);
81
}
82
83
public (string translation, TranslationMapping map) Translate(string content)
0 commit comments