Class: I18n::JS::Formatters::JS
- Defined in:
- lib/i18n/js/formatters/js.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from I18n::JS::Formatters::Base
Instance Method Details
#format(translations) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/i18n/js/formatters/js.rb', line 13 def format(translations) contents = header translations.each do |locale, translations_for_locale| contents << line(locale, format_json(translations_for_locale)) end contents << (@suffix || '') end |