From 882af5b9ee8f50e0a26e7155a59d5af4edd1e2cc Mon Sep 17 00:00:00 2001 From: Zack Braksa Date: Sat, 28 Sep 2024 00:18:47 +0100 Subject: [PATCH 1/2] Add translation for default currency label in form --- .../spree/admin/stores/form/_internationalization.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/spree/admin/stores/form/_internationalization.html.erb b/app/views/spree/admin/stores/form/_internationalization.html.erb index df70d16c22..9d228dadb2 100644 --- a/app/views/spree/admin/stores/form/_internationalization.html.erb +++ b/app/views/spree/admin/stores/form/_internationalization.html.erb @@ -6,7 +6,7 @@
<%= f.field_container :default_currency do %> - <%= f.label :default_currency %> + <%= f.label :default_currency, Spree.t(:default_currency) %> <%= f.select :default_currency, currency_options(@store.default_currency), {}, { class: 'select2' } %> <%= f.error_message_on :default_currency %> <% end %> From 3d68a98b615369e1abe0eccfcbbfea8ad5bf55b2 Mon Sep 17 00:00:00 2001 From: Zack Braksa Date: Sat, 28 Sep 2024 00:34:09 +0100 Subject: [PATCH 2/2] Add translation for default_locale label in form --- .../spree/admin/stores/form/_internationalization.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/spree/admin/stores/form/_internationalization.html.erb b/app/views/spree/admin/stores/form/_internationalization.html.erb index 9d228dadb2..b6c08e0f67 100644 --- a/app/views/spree/admin/stores/form/_internationalization.html.erb +++ b/app/views/spree/admin/stores/form/_internationalization.html.erb @@ -37,7 +37,7 @@ <% end %>
<%= f.field_container :default_locale do %> - <%= f.label :default_locale %> + <%= f.label :default_locale, Spree.t(: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 %>