Package graphql.i18n

Class I18n

java.lang.Object
graphql.i18n.I18n

public class I18n extends Object
  • Constructor Details

  • Method Details

    • getLocale

      public Locale getLocale()
    • getResourceBundle

      public ResourceBundle getResourceBundle()
    • i18n

      public static I18n i18n(I18n.BundleType bundleType, Locale locale)
    • msg

      public String msg(String msgKey, Object... msgArgs)
      Creates an I18N message using the key and arguments
      Parameters:
      msgKey - the key in the underlying message bundle
      msgArgs - the message arguments
      Returns:
      the formatted I18N message
    • msg

      public String msg(String msgKey, List<Object> msgArgs)
      Creates an I18N message using the key and arguments
      Parameters:
      msgKey - the key in the underlying message bundle
      msgArgs - the message arguments
      Returns:
      the formatted I18N message