Object I18n

  • All Implemented Interfaces:

    
    public class I18n
    
                        

    国际化工具 面对不同的语言环境应当采用不同的语言提示 默认调用resources下的i18n文件夹下的本地化翻译文件夹的json

    Author:

    Toutatis_Gc

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static I18n INSTANCE
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Unit setLocale(Locale locale) 设置区域信息并加载语言库
      final static String translate(String key) 从库中翻译
      final static String translate(String key, String args) 从库中翻译
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait