Interface TranslationHandler

    • Method Detail

      • getBuiltinResourceBundle

        ResourceBundle getBuiltinResourceBundle​(BuiltinLanguage language,
                                                Module module)
        Returns the built-in resource bundle for the given language and module. Having a separated cache is important when there are multiple languages sharing the same template. This will avoid multiple copies of the immutable bundles for each module.
      • getCustomizedKeys

        Map<String,​String> getCustomizedKeys​(long languageId)
        Returns the customized keys for the given language's id
      • message

        String message​(Language language,
                       MessageKey key,
                       Object... arguments)
        Returns a translation message for the given language, applying the given arguments, if any
      • message

        String message​(MessageFormat messageFormat,
                       Language language,
                       MessageKey key,
                       Object... arguments)
        Returns a translation message for the given language, applying the given arguments, if any and formatting the message according to the given message format