added export for locale, for use in connect/express middlewares