GradleFx provides an easy way to specify locales instead of having to specify the compiler arguments. The two convention properties of importance are:
Let’s say you want to support the en_GB and nl_BE locales. Then you could have the following directory structure:
Because ‘src/main/locale’ is already the default value for the localeDir property you only have to specify the locales, like this:
locales = ['en_GB', 'nl_BE']
You can also change the default value of the localeDir in case you don’t want to follow the convention like this:
localeDir = 'locales' //directory structure will then look like this: %PROJECT_ROOT%/locales/en_GB