mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix logic of ShouldTranslate()
This commit is contained in:
parent
b18959514d
commit
d2dc307bc0
1 changed files with 1 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue