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-2.8.1 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend-2.5.1 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend-2.6.3 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend-2.8.0 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend-2.7.1 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend-2.6.2 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.14 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.13 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.12 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.11 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.10 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.9 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.8 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.7 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.6 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.5 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.4 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.3 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend_devise_token_auth-2.8.0.alpha.2 app/views/spree/admin/shared/_js_locale_data.html.erb
solidus_backend-2.7.0 app/views/spree/admin/shared/_js_locale_data.html.erb