lib/pah/partials/_locale.rb in pah-0.0.10 vs lib/pah/partials/_locale.rb in pah-0.0.11

- old
+ new

@@ -1,7 +1,11 @@ puts "Adding locale... ".magenta +copy_static_file 'config/locales/pt-BR.yml' +git :add => 'config/locales/pt-BR.yml' +git :commit => "-qm 'Add pt-BR locale.'" + time_zone_config = <<TIME_ZONE config.time_zone = 'Brasilia' TIME_ZONE @@ -9,9 +13,10 @@ inject_into_file 'config/application.rb', time_zone_config, { after: "# config.time_zone = 'Central Time (US & Canada)'", verbose: false } end locale_config = <<LOCALE + config.i18n.enforce_available_locales = true config.i18n.default_locale = :"pt-BR" config.i18n.locale = :"pt-BR" LOCALE in_root do