<%= Spree.t(:internationalization) %>
<%= f.field_container :default_currency do %> <%= f.label :default_currency %> <%= f.select :default_currency, currency_options(@store.default_currency), {}, { class: 'select2' } %> <%= f.error_message_on :default_currency %> <% end %> <%= f.field_container :supported_currencies do %> <%= f.label :supported_currencies, Spree.t(:supported_currencies) %> <%= f.select :supported_currencies, currency_options(@store.supported_currencies&.split(',')), { prompt: false }, { multiple: true, class: 'select2' } %> <%= f.error_message_on :supported_currencies %> <%= Spree.t('admin.store_form.currencies_help') %> <% end %>
<%= f.field_container :checkout_zone_id do %> <%= f.label :checkout_zone_id, Spree.t(:shipping_zone) %> <%= f.select :checkout_zone_id, options_for_select(@zones), { include_blank: Spree.t(:no_limits_zone) }, { class: 'select2' } %> <%= raw(Spree.t('admin.store_form.checkout_zone_help')) %> <%= f.error_message_on :checkout_zone_id %> <% end %> <%= f.field_container :default_country_id do %> <%= f.label :default_country_id, Spree.t('i18n.default_country') %> <%= f.select :default_country_id, options_for_select(@countries, @store.default_country_id), {}, { class: 'select2' } %> <%= f.error_message_on :default_country_id %> <%= Spree.t('admin.store_form.default_country_help') %> <% end %>
<%= f.field_container :default_locale do %> <%= f.label :default_locale %> <%= f.select :default_locale, options_from_collection_for_select(all_locales_options, :last, :first, @store.default_locale || I18n.locale), {}, { class: 'select2' } %> <%= f.error_message_on :default_locale %> <%= Spree.t('admin.store_form.default_locale_notice') %> <% unless defined?(SpreeI18n) %> <%= raw(Spree.t('admin.store_form.locales_help')) %> <% end %> <% end %> <%= f.field_container :supported_locales do %> <%= f.label :supported_locales, Spree.t(:supported_locales) %> <%= f.select :supported_locales, options_from_collection_for_select(all_locales_options, :last, :first, @store.supported_locales&.split(',')), {}, { multiple: true, class: 'select2' } %> <%= f.error_message_on :supported_locales %> <% end %>