<script>
  if (Spree === undefined) {
    var Spree = {}
  }
  Spree.translations = <%==
  {:flatpickr_date_format    => Spree.t(:flatpickr_date_format,
                              :scope => 'date_picker',
                              :default => 'Y-m-d'),
    :flatpickr_datetime_format    => Spree.t(:flatpickr_datetime_format,
                              :scope => 'date_picker',
                              :default => 'Y-m-d H:i'),
    :today                    => Spree.t('date_picker.today'),
    :now                      => Spree.t('date_picker.now'),
    :close                    => Spree.t('date_picker.close'),
    :add                      => I18n.t(:add, scope: :actions),
    :are_you_sure_delete      => Spree.t(:are_you_sure_delete),
    :bill_address             => I18n.t(:bill_address),
    :choose_a_customer        => Spree.t(:choose_a_customer),
    :confirm_delete           => Spree.t(:confirm_delete),
    :cut                      => I18n.t(:cut, scope: :actions),
    :destroy                  => I18n.t(:destroy, scope: :actions),
    :edit                     => Spree.t(:edit),
    :loading                  => Spree.t(:loading),
    :more                     => Spree.t(:more),
    :name                     => Spree.t(:name),
    :next                     => I18n.t(:next),
    :paste                    => I18n.t(:paste, scope: :actions),
    :previous                 => I18n.t(:previous),
    :remove                   => I18n.t(:remove),
    :rename                   => I18n.t(:rename, scope: :actions),
    :sku                      => Spree.t(:sku),
    :value                    => I18n.t(:value)
  }.to_json
%>
</script>
