Extract locale from subdomain