obtainLocale

TODO Review order precedence and complete code (now only taking request attribute)

  1. Request

  2. Accept-language

  3. Cookie

  4. Server default locale