From b11733994f88f6fe51771b280c0647a690646bd6 Mon Sep 17 00:00:00 2001 From: tisfeng Date: Sun, 3 Dec 2023 10:41:09 +0800 Subject: [PATCH] perf: enable tencent from == to --- Easydict/Feature/Service/Tencent/TencentTranslateType.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Easydict/Feature/Service/Tencent/TencentTranslateType.swift b/Easydict/Feature/Service/Tencent/TencentTranslateType.swift index e5ae973af..19743eb9f 100644 --- a/Easydict/Feature/Service/Tencent/TencentTranslateType.swift +++ b/Easydict/Feature/Service/Tencent/TencentTranslateType.swift @@ -61,6 +61,7 @@ struct TencentTranslateType: Equatable { static func transType(from: Language, to: Language) -> TencentTranslateType { if (supportedTypes[from] != nil && to == .traditionalChinese) || + from == to || (supportedTypes[from]?.contains(to) == true) { guard let from = supportLanguagesDictionary[from], let to = supportLanguagesDictionary[to] else {