Module SimplesIdeias::I18n
In: lib/i18n-js.rb
lib/i18n-js/engine.rb
lib/i18n-js/version.rb
lib/i18n-js/middleware.rb
lib/i18n-js/railtie.rb

Methods

Classes and Modules

Module SimplesIdeias::I18n::Version
Class SimplesIdeias::I18n::Engine
Class SimplesIdeias::I18n::Middleware
Class SimplesIdeias::I18n::Railtie

Constants

MERGER = proc { |key, v1, v2| Hash === v1 && Hash === v2 ? v1.merge(v2, &MERGER) : v2 }   deep_merge by Stefan Rusterholz, see www.ruby-forum.com/topic/142809

Public Instance methods

Under rails 3.1.1 and higher, perform a check to ensure that the full environment will be available during asset compilation. This is required to ensure I18n is loaded.

Load configuration file for partial exporting and custom output directory

Check if configuration file exist

Export translations to JavaScript, considering settings from configuration file

Filter translations according to the specified scope.

Convert translations to JSON string and save file.

Copy configuration and JavaScript library files to config/i18n-js.yml and public/javascripts/i18n.js.

Initialize and return translations

Retrieve an updated JavaScript library from Github.

[Validate]