title: Grails how to change the current locale
body: <p>How can I change the current locale ?</p>
  
  <ul>
  <li>I tried to put <code>controller/action?lang=de</code> but my locale is still <code>en_US</code></li>
  <li><p>I tried to override the value using this piece of code:</p>
  
  <pre><code>def key = "org.springframework.web.servlet.DispatcherServlet.LOCALE_RESOLVER"
  def localeResolver = request.getAttribute(key)
  localeResolver.setLocale(request, response, new Locale("de","DE"))
  </code></pre></li>
  </ul>
  
  <p>Nothing changed.</p>
  
  <ul>
  <li><p>I tried to override the value using this piece of code:</p>
  
  <pre><code>import org.springframework.web.servlet.support.RequestContextUtils as RCU;
  RCU.getLocaleResolver(request).setLocale(request, response, new Locale("de","DE"))
  </code></pre></li>
  </ul>
  
  <p>And... nothing happened. i still got my locale set to <code>en_US</code>.</p>
  
  <p>Any idea to change the locale ?</p>