Change locale check to key off LOCALES.