Tuesday, 18 October 2016

Change locale of grails application

For change the locale of any grails application, means change the printing message language, we just write these 3 files in resources.groovy

beans = {
   localeResolver(org.springframework.web.servlet.i18n.SessionLocaleResolver) {
      defaultLocale = new Locale("de","DE")
      java.util.Locale.setDefault(defaultLocale)
   }
}


No comments:

Post a Comment