Sha256: b1a0ed179c166cbe2715a63dd00f90b26eff87b4435d63e056f3c2b9941975e0
Contents?: true
Size: 773 Bytes
Versions: 2
Compression:
Stored size: 773 Bytes
Contents
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 in_root do 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 inject_into_file 'config/application.rb', locale_config, { after: "# config.i18n.default_locale = :de", verbose: false } end git :add => 'config/application.rb' git :commit => "-qm 'Adding locale config.'"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pah-0.0.12 | lib/pah/partials/_locale.rb |
pah-0.0.11 | lib/pah/partials/_locale.rb |