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
trydofor
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringKeypublic Stringlocalepublic final static StringKey$localepublic Stringzoneidpublic final static StringKey$zoneidpublic Stringbundlepublic final static StringKey$bundle
-
Constructor Summary
Constructors Constructor Description SilencerI18nProp()
-
Method Summary
Modifier and Type Method Description StringgetLocale()in the format `en_US`, `zh_CN`. voidsetLocale(String locale)in the format `en_US`, `zh_CN`. StringgetZoneid()such as `UTC`, `GMT+8,` `Asia/Shanghai`. voidsetZoneid(String zoneid)such as `UTC`, `GMT+8,` `Asia/Shanghai`. StringgetBundle()The default resource configuration, in comma-separated AntPath format. voidsetBundle(String bundle)The default resource configuration, in comma-separated AntPath format. booleanequals(@Nullable() Object o)inthashCode()StringtoString()-
-
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
-
setBundle
void setBundle(String bundle)
The default resource configuration, in comma-separated AntPath format.
-
hashCode
int hashCode()
-
-
-
-