fix locale errors on build.

- config.i18n.enforce_available_locales = false.
- modify LOCALES setter to stop warning on Rails startup.