title: Localized date and numberformats in GWT
body: <p>I have a monolingual GWT application (English) and I would like to use localized date and number formats.</p>
  
  <p>I have added <code>&lt;inherits name="com.google.gwt.i18n.I18N"/&gt;</code> to my <code>gwt.xml</code>, but the formats remain in <code>en-us</code>. I have checked the browser lacale using this script</p>
  
  <pre><code>private native String getBrowserLocale() /*-{
        return navigator.language!=null ? navigator.language : navigator.browserLanguage; 
  }-*/;
  </code></pre>
  
  <p>which reports <code>da_DK</code>.</p>
  
  <p>I also tried forcing the locale by adding <code>&lt;meta name="gwt:property" content="locale=da"&gt;</code> to the <code>index.html</code>, but no luck.</p>
  
  <p>The only way i can get the correct formats is by directly adding the locales to the <code>gwt.xml</code> using <code>&lt;extend-property name="locale" values="da" /&gt;</code>, which is quite annoying because there is quite a few locales available.</p>
  
  <p>Does anybody know a workaround for this?</p>