Updated source code from tab to space indentation.
Fixed I18n deprecation warning for not enforcing available locales in specs.