Class I18n

java.lang.Object
fr.Alphart.BAT.I18n.I18n

public class I18n extends Object
  • Method Details

    • getString

      public static String getString(String key) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
    • tr_

      public static String tr_(String message, String[] formatObject)
      Format a message with given object. Parse color
      Parameters:
      message -
      formatObject -
      Returns:
      String
    • tr_

      public static String tr_(String message)
      Return message by its key
      Parameters:
      message -
      Returns:
      String
    • tr__

      public static net.md_5.bungee.api.chat.BaseComponent[] tr__(String message, String[] formatObject)
      Same as tr_(String, String[]) except it adds a prefix
      Parameters:
      message -
      formatObject -
      Returns:
    • tr__

      public static net.md_5.bungee.api.chat.BaseComponent[] tr__(String message)
      Same as tr_(String, String[]) except it adds a prefix
      Parameters:
      message -
      formatObject -
      Returns:
    • preprocessArgs

      public static String[] preprocessArgs(String[] formatArgs)
      Preprocess formatArgs to replace value contained in the map argsReplacer, in order to have global instead of global for example
      Parameters:
      args -
      Returns:
    • reload

      public static void reload()