Interface TranslationTransform
- All Known Implementing Classes:
AppendLambdaTranslationTransform
,AppendTextTransform
,DisableTranslation
,PrependTextTransform
public interface TranslationTransform
Deprecated.
Implementors of this interface have the opportunity to transform the result of translation lookups made by
I18nHelper.getUnescapedText(String)
.
(and hence I18nHelper.getText(String)
and all its derivatives).
This transform will occur dynamically when the translation is requested.
- Since:
- v5.1
-
Method Summary
-
Method Details
-
apply
Deprecated.Given aLocale
, i18n key and the rawMessage corresponding to them, apply a transformation on the message to produce a different translation.- Parameters:
locale
- the locale that was used to translate the inputkey
- the key that was requested for translationrawMessage
- the result of the translation lookup- Returns:
- a potentially modified raw message
-
<translation-transformation>
in any plugin in production in cloud.