Sha256: 9727ec52e426b11d8f56e59a6c19d3ca908043800cb4b16f538c9483c7ce79ee

Contents?: true

Size: 242 Bytes

Versions: 11

Compression:

Stored size: 242 Bytes

Contents

gather_gem('rails-i18n')

if equals?(:lang, 'es')
  template 'assets/es.yml', 'config/locales/es.yml'
end

gsub_file 'config/application.rb', /# config\.i18n\.default_locale =[^\n]+\n/ do
  "config.i18n.default_locale = :#{get(:lang)}\n"
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
potassium-1.3.5 lib/potassium/templates/application/recipes/i18n.rb
potassium-1.3.4 lib/potassium/templates/application/recipes/i18n.rb
potassium-1.3.3 lib/potassium/templates/application/recipes/i18n.rb
potassium-1.3.2 lib/potassium/templates/application/recipes/i18n.rb
potassium-1.3.0 lib/potassium/templates/application/recipes/i18n.rb
potassium-1.2.4 lib/potassium/templates/application/recipes/i18n.rb
potassium-1.2.3 lib/potassium/templates/application/recipes/i18n.rb
potassium-1.2.2 lib/potassium/templates/application/recipes/i18n.rb
potassium-1.2.1 lib/potassium/templates/application/recipes/i18n.rb
potassium-1.2.0 lib/potassium/templates/application/recipes/i18n.rb
potassium-1.1.0 lib/potassium/templates/application/recipes/i18n.rb