Use SwiftyTranslate question

Hi, I want to get the translation result using the SwiftyTranslate library.
The problem with me is that I don't know how to use it.

import SwiftyTranslate

SwiftyTranslate.translate(text: "Hello World", from: "en", to: "de") { result in
    switch result {
    case .success(let translation):
        print("Translated: \(translation.translated)")
    case .failure(let error):
        print("Error: \(error)")
    }
}

I got the result for the 'print', but I don't know how to 'return' the result. (translation.translated)
One class(function) or Keep it at [.swift] and different. I'd like to call at [.swift], so can I get some help?
Text(transString(string: String))