Sha256: 0614e7fefb0f3c1ce371f38840f3b3b07c3b9559b52e681378e24ba947ce4727

Contents?: true

Size: 310 Bytes

Versions: 1

Compression:

Stored size: 310 Bytes

Contents

locales = {}

<%
  locales_exporter = ::RailsAssetLocalization::LocalesExporter.new
  I18n.available_locales.uniq.each do |locale|
%>
locales['<%= locale %>'] = {}
locales['<%= locale %>']['translation'] = <%= locales_exporter.translations[locale.to_sym].to_json %>
<%
  end
%>

window.bundledLocales = locales

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails-asset-localization-0.1.0 app/assets/javascripts/i18n/translations.coffee.erb