title: Grails: How to get locale in a GSP page that sits outsides of controller / domain / service?
body: <p>I have an internazionalised application with language selection, based on Grails and the kickstarter plugin. As per the configuration in its UrlMappings, there are some pages without controller. On these, only the default locale is applied no matter what a user has actually selected. Further, on them changing the language does not work. g:message tags output with the default locale; I tried</p>
  
  <pre><code>&lt;g:set var="locale"
     value="${session.'org.springframework.web.servlet.i18n.SessionLocaleResolver.LOCALE' ?: org.springframework.web.servlet.support.RequestContextUtils.getLocale(request)}"/&gt;
  </code></pre>
  
  <p>(forgot where I found that) .. but following that nothing changes.</p>