commit a58ca2918a9e319af4f3cdb29818804aa7a68812
parent b86bac2e42664bf2fa09ec9e6ec78b7d75595a77
Author: Terry Yiu <git@tyiu.xyz>
Date: Sat, 30 Sep 2023 12:56:54 -0400
Remove nonfunctional LibreTranslate servers
Signed-off-by: Terry Yiu <git@tyiu.xyz>
Reviewed-by: William Casarin <jb55@jb55.com>
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/damus/Models/LibreTranslateServer.swift b/damus/Models/LibreTranslateServer.swift
@@ -28,16 +28,10 @@ enum LibreTranslateServer: String, CaseIterable, Identifiable, StringCodable {
self = libreTranslateServer
}
- case argosopentech
- case terraprint
case custom
var model: Model {
switch self {
- case .argosopentech:
- return .init(tag: self.rawValue, displayName: "translate.argosopentech.com", url: "https://translate.argosopentech.com")
- case .terraprint:
- return .init(tag: self.rawValue, displayName: "translate.terraprint.co", url: "https://translate.terraprint.co")
case .custom:
return .init(tag: self.rawValue, displayName: NSLocalizedString("Custom", comment: "Dropdown option for selecting a custom translation server."), url: nil)
}
diff --git a/damus/Models/UserSettingsStore.swift b/damus/Models/UserSettingsStore.swift
@@ -221,7 +221,7 @@ class UserSettingsStore: ObservableObject {
}
}
- @StringSetting(key: "libretranslate_server", default_value: .terraprint)
+ @StringSetting(key: "libretranslate_server", default_value: .custom)
var libretranslate_server: LibreTranslateServer
@Setting(key: "libretranslate_url", default_value: "")