Package sk.iway.iwcm.system.translation
Class TranslationService
java.lang.Object
sk.iway.iwcm.system.translation.TranslationService
Vseobecna trieda pre preklad textov, vyzaduje konfiguraciu prekladaca, aktualne je podporovany DeepL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TranslationEngineInfovoidsetFromLanguage(String fromLanguage) voidsetToLanguage(String toLanguage) voidsetTranslationEngine(TranslationEngine translationEngine) Translate text from one language to another using the configured translation engine and languages set in constructor.Translate text from one language to another using the configured translation engine.
-
Constructor Details
-
TranslationService
-
-
Method Details
-
translate
Translate text from one language to another using the configured translation engine and languages set in constructor.- Parameters:
text-- Returns:
-
translate
Translate text from one language to another using the configured translation engine.- Parameters:
text-fromLanguage-toLanguage-- Returns:
-
getTranslationInfo
-
getFromLanguage
-
getToLanguage
-
getTranslationEngine
-
setFromLanguage
-
setToLanguage
-
setTranslationEngine
-