Interface LocalizableObject<R>
- Type Parameters:
R- the type of the underlying object which could be translated.
public interface LocalizableObject<R>
Represents object, which can be localized.
Depending on the implementation, the localization may cause cascading "wrapping" of underlying localization parts
to the resulting form (specified by the
R type parameter).-
Method Summary
Modifier and TypeMethodDescriptiontranslate(LocalizationService localizationService, Locale locale) Translate underlying localizable object.
-
Method Details
-
translate
Translate underlying localizable object.- Parameters:
localizationService- the service used for translation.locale- the locale to which the translation should be done.- Returns:
- Translated object.
-