5 Dec, 2008 in Grails by khelll

A little problem that i faced with grails , was setting the locale dynamically, i followed this nice article , and here is how i could manage it :

I made a new file called messages_ar.properties that contains the arabic localization under the i18n folder.
I made a simple beforeinterceptor:

def beforeInterceptor = {
[...]