GWT - did you forget to inherit a required module?

后端 未结 2 1641
北荒
北荒 2020-12-18 18:34

In my GWT application, on the client side Java file, I have written a line to print the Locale:

System.out.println(Locale.getDefault());
         


        
2条回答
  •  情书的邮戳
    2020-12-18 19:05

    In addition to information in RAS's answer, you could use GWT's class LocaleInfo to obtain information about available locales or current locale.

    System.out.println(LocaleInfo.getCurrentLocale());
    

    Hope this helps!

提交回复
热议问题