Package 

Interface I18nTranslator

  • All Implemented Interfaces:
    ai.tock.translator.I18nKeyProvider

    
    public interface I18nTranslator
     implements I18nKeyProvider
                        

    Translates CharSequence depending of current userLocale, userInterfaceType and targetConnectorType.

    • Method Summary

      Modifier and Type Method Description
      TranslatedSequence translate(CharSequence text, Object args) Translates and format if needed the text with the optionals args.
      TranslatedSequence translate(CharSequence text, List<Object> args) Translates and format if needed the text with the optionals args.
      TranslatedSequence translate(I18nLabelValue key) Translates the specified key.
      TranslatedSequence translateAndReturnBlankAsNull(CharSequence s) Translates the specified text and return null if the answer is blank.
      abstract Locale getUserLocale() The current user Locale.
      abstract UserInterfaceType getUserInterfaceType() The current user interface type.
      abstract ConnectorType getTargetConnectorType() The ConnectorType used for the response.
      abstract String getContextId() The current context identifier.
      • Methods inherited from class ai.tock.translator.I18nKeyProvider

        equals, hashCode, toString
      • Methods inherited from class ai.tock.bot.engine.I18nTranslator

        i18n, i18n
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait