mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix ShouldTranslate() logic
- Check settings or it won't work as expected
This commit is contained in:
parent
fdbb183064
commit
ebcd7d5915
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ namespace Flow.Launcher.Infrastructure
|
|||
public bool ShouldTranslate(string stringToTranslate)
|
||||
{
|
||||
// If a string has Chinese characters, we don't need to translate it to pinyin.
|
||||
return !WordsHelper.HasChinese(stringToTranslate);
|
||||
return _settings.ShouldUsePinyin && !WordsHelper.HasChinese(stringToTranslate);
|
||||
}
|
||||
|
||||
public (string translation, TranslationMapping map) Translate(string content)
|
||||
|
|
|
|||
Loading…
Reference in a new issue