Add DeepL translation integration

Changelog-Added: DeepL translation integration
Closes: #522
This commit is contained in:
2023-02-04 12:07:27 -05:00
committed by William Casarin
parent 7d1bac4028
commit 567303e680
9 changed files with 429 additions and 130 deletions

View File

@@ -17,7 +17,6 @@ enum LibreTranslateServer: String, CaseIterable, Identifiable {
var url: String?
}
case none
case argosopentech
case terraprint
case vern
@@ -25,8 +24,6 @@ enum LibreTranslateServer: String, CaseIterable, Identifiable {
var model: Model {
switch self {
case .none:
return .init(tag: self.rawValue, displayName: NSLocalizedString("None", comment: "Dropdown option for selecting no translation server."), url: nil)
case .argosopentech:
return .init(tag: self.rawValue, displayName: "translate.argosopentech.com", url: "https://translate.argosopentech.com")
case .terraprint: