But some projects don't need such flexibility. Rather they want to make sure that a specific locale is used always.
All you need to do is adding Spring's FixedLocaleResolver and set the VM's default locale. Add the following code to your resources.groovy:
localeResolver (FixedLocaleResolver, Locale.GERMANY) {
Locale.setDefault (Locale.GERMANY)
}
0 comments:
Post a Comment
And Feedback? Please post a comment: