I had the same problem. I looked everywhere at the answer, but could not find the answer; either in documents or in stackoverflow.
So I asked in the GWT channel for gitter and I was told to use the compiler argument
-extra <destination-folder-name>
to create .properties from interface files.
Steps in eclipse:
- Select the project you want to compile
- [right click] β Google β GWT Compilation
- In the window that opens, open the Advanded options.
- Add the following optional compiler argument
-extra <destination-folder-name> - Compile

This should generate *.properties in /destination-folder-name .
NOTE. . This only generates .properties . It does not actually compile the application with all the locales for deployment.
Move MyInterfaceExtension_*.properties MyInterfaceExtension.java next to MyInterfaceExtension.java .
Make copies for each locale, i.e. MyInterfaceExtension_fr_CA.properties , MyInterfaceExtension_fr_FR.properties , etc.
Translate to them
Then start the compilation process with the option -extra <destination-folder-name> . Because he is no longer needed.
This will compile with all the locales you have enabled. Now you can deploy the application in the usual way.
Quick Tips:
When compiling for the first time, to generate a .properties file, I commented on the locales in the module definition file so that the compiler does not sit and compiles again and again for each browser and each language standard
i.e. supported_browser_count x enabled_locale_count = 5 browsers x 3 locales = 15 compilation Permutations that increase compilation time.
Because I needed only one *_en.properties file.
For the second compilation, after copying and translating the properties files for each locale, you need to include all the locales that you want to maintain and compile.
Loans:
- github @ niloc132: Colin Alworth
- github @ibaca: Ignacio Baca Moreno-Torres
To help me with this.
source share