org.modeshape.common.i18n

## Interface I18nResource

- All Known Implementing Classes:
    I18n, TextI18n

      public interface I18nResource

  Interface which should be implemented by any i18n compliant resource.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `text(Locale locale, Object... arguments)` Get the localized text for the supplied locale, replacing the parameters in the text with those supplied.
    `String` | `text(Object... arguments)` Get the localized text for the `current (default) locale`, replacing the parameters in the text with those supplied.

- - ### Method Detail

    - #### text

          String text(Object... arguments)

      Get the localized text for the `current (default) locale`, replacing the parameters in the text with those supplied.
      Parameters:
        `arguments` - the arguments for the parameter replacement; may be `null` or empty
      Returns:
        the localized text

    - #### text

          String text(Locale locale,
                    Object... arguments)

      Get the localized text for the supplied locale, replacing the parameters in the text with those supplied.
      Parameters:
        `locale` - the locale, or `null` if the `current (default) locale` should be used
        `arguments` - the arguments for the parameter replacement; may be `null` or empty
      Returns:
        the localized text

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.