Added domain-based locale parsing.