Package com.isomorphic.util

# Interface LocaleMessageProvider

public interface LocaleMessageProvider
Interface to implement by custom i18n messages providers. Use `LocaleMessageProviderRegistry` to register custom providers.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getMessage(String key, Locale locale, String preText, String postText, LocaleMessageSourceEnum source, String sourceFilename)`
  Will be called by framework when evaluating i18n message (<fmt> tag).

- ## Method Details

  - ### getMessage

    String getMessage(String key, Locale locale, String preText, String postText, LocaleMessageSourceEnum source, String sourceFilename)
    Will be called by framework when evaluating i18n message (<fmt> tag).
    Parameters:
      `key` - i18n message key
      `locale` - i18n message locale
      `preText` - any text before <fmt> tag inside parent XML element
      `postText` - any text after <fmt> tag inside parent XML element
      `source` - source where <fmt> tag was met, see `LocaleMessageSourceEnum` for possible values.
      `sourceFilename` - source filename if source is a file
    Returns:
      i18n message text