Interface ITranslationService


public interface ITranslationService
Service that provides translations
  • Method Details

    • getTranslationsCheckSum

      long getTranslationsCheckSum(Locale locale)
      Gets the checksum of the current translations of the given language. Can be used for fast checking whether the translations changed or not.
      Parameters:
      locale - the language of which the checksum of the translations is requested.
      Returns:
      The checksum of the current translations of the given language.
    • getTranslations

      Translations getTranslations(Locale locale)
      Gets the translations of the given language (locale).
      Parameters:
      locale - The language of which the translations are requested.
      Returns:
      The translations of the given language.
    • getMessageTranslation

      String getMessageTranslation(String message)
      Gets the translated message for the current locale for the provided message ID.
      Parameters:
      message - The ID of the message to translate.
      Returns:
      The translated String message of the current set language.
    • getMessageTranslation

      String getMessageTranslation(String message, Locale locale)
      Gets the translated message for the provided locale for the provided message ID.
      Parameters:
      message - The ID of the message to translate.
      locale - The ID of the target locale to translate to
      Returns:
      The translated String message of the provided locale.