mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-06-01 07:08:17 +00:00
da0b92e13d
The bio (note) of an account can now be translated via DeepL. If the user has put in his own DeepL API key, that is used, otherwise, the standard one is used. See #1267 Signed-off-by: Paul Schuetz <pa.schuetz@web.de>
16 lines
424 B
Swift
16 lines
424 B
Swift
import Foundation
|
|
|
|
public struct Translation: Decodable {
|
|
public let content: HTMLString
|
|
public let detectedSourceLanguage: String
|
|
public let provider: String
|
|
|
|
public init(content: String, detectedSourceLanguage: String, provider: String) {
|
|
self.content = .init(stringValue: content)
|
|
self.detectedSourceLanguage = detectedSourceLanguage
|
|
self.provider = provider
|
|
}
|
|
}
|
|
|
|
extension Translation: Sendable {}
|