Interface TranslationHost.Translator<T>
- Type Parameters:
T- The type of content which can be translated by this handler.
- Enclosing interface:
- TranslationHost
public static interface TranslationHost.Translator<T>
Handler providing means to translate a certain type of content.
- Since:
- 5.2.33
-
Method Summary
Modifier and TypeMethodDescriptiontranslate(@NotNull TranslationContext context, T object) Translates the given content object in the specified context.
-
Method Details
-
translate
Translates the given content object in the specified context.- Parameters:
context- The context of the specified content.object- The object to translate.- Returns:
- The translated object, or
nullif the content could not be translated. - Since:
- 5.2.33
-