Sha256: cf7eb0ee8239442a1767c17e00567fc699805cc453bce9d561184a5c9d0ebcaf

Contents?: true

Size: 1.2 KB

Versions: 36

Compression:

Stored size: 1.2 KB

Contents

<script>
  if (Spree === undefined) {
    var Spree = {}
  }
  Spree.translations = <%==
    I18n.t("spree").merge({
    :date_picker    => Spree.t(:js_format,
                              :scope => 'date_picker',
                              :default => 'yy/mm/dd'),
    :abbr_day_names           => I18n.t(:abbr_day_names, :scope => :date),
    :destroy                  => Spree.t(:destroy, :scope => :actions),
    :edit                     => Spree.t(:edit,    :scope => :actions),
    :save                     => Spree.t(:save,    :scope => :actions),
    :cancel                   => Spree.t(:cancel,  :scope => :actions),
    :first_day                => Spree.t(:first_day,
                                         :scope => 'date_picker',
                                         :default => 0).to_i,
    :item_stock_placeholder   => Spree.t(:choose_location),
    :month_names              => I18n.t(:month_names, :scope => :date).reject(&:blank?),
    :currency_separator       => I18n.t('number.currency.format.separator'),
  }).to_json
%>
</script>
<script data-hook='admin-custom-translations'>
</script>

<% if I18n.locale != :en %>
  <%= javascript_include_tag "select2_locale_#{I18n.locale}" %>
<% end %>

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
solidus_backend-2.1.1 app/views/spree/admin/shared/_translations.html.erb
solidus_backend-2.0.3 app/views/spree/admin/shared/_translations.html.erb
solidus_backend-1.4.2 app/views/spree/admin/shared/_translations.html.erb
solidus_backend-1.3.2 app/views/spree/admin/shared/_translations.html.erb
solidus_backend-1.2.3 app/views/spree/admin/shared/_translations.html.erb
solidus_backend-1.1.4 app/views/spree/admin/shared/_translations.html.erb
solidus_backend-2.0.2 app/views/spree/admin/shared/_translations.html.erb
solidus_backend-1.4.1 app/views/spree/admin/shared/_translations.html.erb
solidus_backend-2.1.0 app/views/spree/admin/shared/_translations.html.erb
solidus_backend-2.1.0.rc1 app/views/spree/admin/shared/_translations.html.erb
solidus_backend-2.0.1 app/views/spree/admin/shared/_translations.html.erb
solidus_backend-2.1.0.beta1 app/views/spree/admin/shared/_translations.html.erb
solidus_backend-2.0.0 app/views/spree/admin/shared/_translations.html.erb
solidus_backend-1.4.0 app/views/spree/admin/shared/_translations.html.erb
solidus_backend-2.0.0.rc1 app/views/spree/admin/shared/_translations.html.erb
solidus_backend-1.4.0.rc1 app/views/spree/admin/shared/_translations.html.erb
solidus_backend-2.0.0.beta1 app/views/spree/admin/shared/_translations.html.erb
solidus_backend-1.4.0.beta1 app/views/spree/admin/shared/_translations.html.erb
solidus_backend-1.3.1 app/views/spree/admin/shared/_translations.html.erb
solidus_backend-1.3.0 app/views/spree/admin/shared/_translations.html.erb