Sha256: 92693fe649408f9a93dde0252c486bce742d6a5535cfb102747ddebdb318fa28
Contents?: true
Size: 544 Bytes
Versions: 1
Compression:
Stored size: 544 Bytes
Contents
namespace :locale_app do desc 'Imports the en.yml file to the LocaleServer' task :import => :environment do require 'flatten' include I18n::Backend::Flatten yml = YAML.load_file(ENV['LOCALE_FILE']) yml.each do |locale, translations| flatten_translations( locale, translations, I18n::Backend::Flatten::SEPARATOR_ESCAPE_CHAR, nil ).each do |key, value| puts "#{key} => #{value}" LocaleApp.sender.post_translation(locale, key, {}, value) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
localeapp-0.0.7 | lib/locale_app/tasks/locale_app.rake |