13.5. Internationalizing client bundles through static internationalization

Back in chapter 5, we looked at the great things you can do with client bundles and how they reduce the number of round-trips to servers. We can now further reveal that because they implement the Localizable interface, you can easily harness the i18n approach. This allows you to create and manage resource bundles specific to locales.

In our static i18n example, we show this in action to create a client bundle holding a flag broadly representing the locale. Although we don’t get any great advantages with just one image, it’s easy to envisage this approach extending to cover other resources such as documents and other locale-specific images.

We start off by creating ...

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.