taoensso / tower

i18n & L10n library for Clojure/Script
https://www.taoensso.com/tower
Eclipse Public License 1.0
277 stars 24 forks source link

How to parse Accept-Language header value #13

Closed ghost closed 11 years ago

ghost commented 11 years ago

I see that you parse the Accept-Language header value for locale determination.

Where is the code that does that?

I need to parse it to get the locale for my own application and it would be helpful to see the code for how it is done.

Are you using http://jetty.codehaus.org/jetty/jetty-6/apidocs/org/mortbay/jetty/Request.html#getLocale()?

ptaoussanis commented 11 years ago

Hi,

The Accept-Language stuff is in taoensso.tower.utils.

ghost commented 11 years ago

Thanks a lot!

ptaoussanis commented 11 years ago

No problem, cheers!