Class SilencerI18nProp

  • All Implemented Interfaces:

    @ConfigurationProperties(value = SilencerI18nProp.Key) 
    public class SilencerI18nProp
    
                        

    Set default language and timezone for the app, as well as i18n messages. wings-i18n-79.properties

    Since:

    2021-02-13

    Author:

    trydofor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getLocale() in the format `en_US`, `zh_CN`.
      void setLocale(String locale) in the format `en_US`, `zh_CN`.
      String getZoneid() such as `UTC`, `GMT+8,` `Asia/Shanghai`.
      void setZoneid(String zoneid) such as `UTC`, `GMT+8,` `Asia/Shanghai`.
      String getBundle() The default resource configuration, in comma-separated AntPath format.
      void setBundle(String bundle) The default resource configuration, in comma-separated AntPath format.
      boolean equals(@Nullable() Object o)
      int hashCode()
      String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SilencerI18nProp

        SilencerI18nProp()
    • Method Detail

      • getLocale

         String getLocale()

        in the format `en_US`, `zh_CN`. Default system language. Corresponds to `user.language`, `user.country` of the system variable

      • setLocale

         void setLocale(String locale)

        in the format `en_US`, `zh_CN`. Default system language. Corresponds to `user.language`, `user.country` of the system variable

      • getZoneid

         String getZoneid()

        such as `UTC`, `GMT+8,` `Asia/Shanghai`. Default system timezone. corresponding to `user.timezone` of the system variable

      • setZoneid

         void setZoneid(String zoneid)

        such as `UTC`, `GMT+8,` `Asia/Shanghai`. Default system timezone. corresponding to `user.timezone` of the system variable

      • getBundle

         String getBundle()

        The default resource configuration, in comma-separated AntPath format.

      • setBundle

         void setBundle(String bundle)

        The default resource configuration, in comma-separated AntPath format.