Skip to content

Commit

Permalink
perf: enable tencent from == to
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng committed Dec 3, 2023
1 parent 9b3fb23 commit b117339
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b117339

Please sign in to comment.