Sha256: 40e225c9e855bc428c51f09453f979bd5cb2db4ff37faa2ba3c9f2bc00dcd000

Contents?: true

Size: 1.07 KB

Versions: 107

Compression:

Stored size: 1.07 KB

Contents

<script>
  if (Spree === undefined) {
    var Spree = {}
  }
  Spree.translations = <%==
    JSON.dump(
      I18n.t("spree").merge({
        abbr_day_names:         I18n.t(:abbr_day_names, scope: :date),
        month_names:            I18n.t(:month_names, scope: :date).reject(&:blank?),
        currency_separator:     I18n.t('number.currency.format.separator'),
        currency_delimiter:     I18n.t('number.currency.format.delimiter'),
        activerecord:           I18n.t('activerecord')
    }))
%>;

  Spree.currencyInfo = <%==
    JSON.dump(
      Spree::Config.available_currencies.map { |c|
        format =
          if c.symbol == "" || c.symbol_first
            "%s%v"
          else
            "%v %s"
          end
        [c.id.to_s.upcase, [
          c.symbol || "ยค",
          c.exponent,
          format
        ]]
    }.to_h)
%>;
</script>
<script data-hook='admin-custom-translations'>
</script>

<% if I18n.locale != :en %>
  <%= javascript_include_tag "solidus_admin/select2_locales/select2_locale_#{I18n.locale}",
    data: {turbolinks_track: 'reload'} %>
<% end %>

Version data entries

107 entries across 107 versions & 2 rubygems

Version Path
solidus_backend-3.3.4 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend-3.2.9 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend-3.2.8 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend-3.3.3 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend-3.2.7 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend-3.3.2 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend-3.3.1 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend-3.2.6 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend-3.1.9 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend-3.3.0 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend-3.2.5 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend-3.2.4 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend-3.2.3 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend-3.1.8 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend-3.0.8 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend-3.2.2 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend-3.2.1 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend-3.2.0 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend-3.2.0.alpha app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend-3.0.7 app/views/spree/admin/shared/_js_locale_data.html.erb