mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-10 23:07:47 +00:00
Lazy load translations and add keys
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
- content_for :page_title do
|
||||
= t(:editing_payment_method)
|
||||
= t('.editing_payment_method')
|
||||
%i.icon-arrow-right
|
||||
= @payment_method.name
|
||||
- content_for :page_actions do
|
||||
%li
|
||||
= button_link_to t(:new), spree.new_admin_payment_method_path, icon: 'icon-plus'
|
||||
%li
|
||||
= button_link_to t(:back_to_payment_methods_list), spree.admin_payment_methods_path, icon: 'icon-arrow-left'
|
||||
= button_link_to t('.back_to_payment_methods_list'), spree.admin_payment_methods_path, icon: 'icon-arrow-left'
|
||||
= render partial: 'spree/shared/error_messages', locals: { target: @payment_method }
|
||||
= form_for @payment_method, url: admin_payment_method_path(@payment_method) do |f|
|
||||
%fieldset.no-border-top
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
- content_for :page_title do
|
||||
= t(:new_payment_method)
|
||||
= t('.new_payment_method')
|
||||
- content_for :page_actions do
|
||||
%li
|
||||
= button_link_to t(:back_to_payment_methods_list), admin_payment_methods_path, icon: 'icon-arrow-left'
|
||||
= button_link_to t('.back_to_payment_methods_list'), admin_payment_methods_path, icon: 'icon-arrow-left'
|
||||
= render partial: 'spree/shared/error_messages', locals: { target: @payment_method }
|
||||
= form_for @payment_method, url: collection_url do |f|
|
||||
%fieldset.no-border-top
|
||||
|
||||
@@ -2696,6 +2696,12 @@ See the %{link} to find out more about %{sitename}'s features and to start using
|
||||
other: "You have %{count} active order cycles."
|
||||
manage_order_cycles: "MANAGE ORDER CYCLES"
|
||||
payment_methods:
|
||||
new:
|
||||
new_payment_method: "New Payment Method"
|
||||
back_to_payment_methods_list: "Back To Payment Methods List"
|
||||
edit:
|
||||
editing_payment_method: "Editing Payment Method"
|
||||
back_to_payment_methods_list: "Back To Payment Methods List"
|
||||
stripe_connect:
|
||||
enterprise_select_placeholder: Choose...
|
||||
loading_account_information_msg: Loading account information from stripe, please wait...
|
||||
|
||||
Reference in New Issue
Block a user