Change locale check to key off LOCALES.
Merge pull request #110 from tobyk100/i18n

Change locale check to key off LOCALES.