Package org.nuclos.api.l10n
Interface Translator
public interface Translator
The Translator interface defines the contract for translating text between locales.
Implementations of this interface provide specific translation capabilities
using different translation services or mechanisms.
-
Method Summary
Modifier and TypeMethodDescriptiontranslate
(TranslationContext context) Translates text based on the provided translation context.
-
Method Details
-
translate
Translates text based on the provided translation context.- Parameters:
context
- The translation context containing source text, source locale, target locale, and other relevant information- Returns:
- The translated text
- Throws:
Exception
- If an error occurs during the translation process
-