public I18nTranslator
Translates CharSequence depending of current userLocale, userInterfaceType and targetConnectorType.
userLocale,
userInterfaceType,
targetConnectorType@NotNull ai.tock.translator.UserInterfaceType getUserInterfaceType()
The current user interface type.
@NotNull ConnectorType getTargetConnectorType()
The class ConnectorType used for the response.
class ConnectorType@Nullable java.lang.String getContextId()
The current context identifier.
@NotNull
ai.tock.translator.TranslatedSequence translate(@Nullable
java.lang.CharSequence text,
@NotNull
java.lang.Object... args)
Translates and format if needed the text with the optionals args.
@NotNull
ai.tock.translator.TranslatedSequence translate(@Nullable
ai.tock.translator.I18nLabelValue key)
Translates the specified key.
@Nullable
ai.tock.translator.TranslatedSequence translateAndReturnBlankAsNull(@Nullable
java.lang.CharSequence s)
Translates the specified text and return null if the answer is blank.