Get locale variable from query, subdomain, accept-languages or cookie for koa.