13.4. Determining the locale for static-string internationalization
All the talk of constants and messages per locale is great, but without knowing what locale the user is requesting, you’re not going to see a difference.
Locale determination is performed during the bootstrapping of the GWT application in the browser. Once the locale is determined, the appropriate locale-specific implementation is downloaded. The determination is performed by something called a property provider, which is a segment of JavaScript code defined either directly in a GWT module or by a property-provider generator referenced in a GWT module. For static i18n, it’s the latter, defined in the I18N module that you inherit to use i18n.
Older versions of GWT had a fixed ...
Get GWT in Action, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.