From 6c8b687c1b22ef299c991e0048a478eb533e93fc Mon Sep 17 00:00:00 2001 From: Fab Date: Thu, 21 Nov 2024 16:36:20 +0100 Subject: [PATCH] =?UTF-8?q?Replaced=20=E2=80=9CMy=20Account"=20with=20i18?= =?UTF-8?q?=20variable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed wrong translation variale Replaced “My Account" with i18 variable Convert hard coded label into i18 string --- templates/app/views/users/edit.html.erb | 5 +++-- templates/app/views/users/show.html.erb | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/app/views/users/edit.html.erb b/templates/app/views/users/edit.html.erb index 1d86f988..30926970 100644 --- a/templates/app/views/users/edit.html.erb +++ b/templates/app/views/users/edit.html.erb @@ -2,7 +2,8 @@ <%= render 'shared/error_messages', target: @user %>
-

My account

+

<%= t('spree.my_account') %>

+
<%= @user.email %> <%= form_with(url: logout_path, method: Devise.sign_out_via, local: true) do %> @@ -14,7 +15,7 @@
<%= render 'users/users_menu' %>
-

<%= I18n.t('spree.editing_user') %>

+

<%= t('spree.editing_user') %>

<%= form_for @user, html: { class: "space-y-6 mb-12 col-span-full md:col-span-6" } do |f| %> diff --git a/templates/app/views/users/show.html.erb b/templates/app/views/users/show.html.erb index ef21b82c..800ffede 100644 --- a/templates/app/views/users/show.html.erb +++ b/templates/app/views/users/show.html.erb @@ -5,7 +5,7 @@
-

My account

+

<%= t('spree.my_account') %>

<%= @user.email %> <%= form_with(url: logout_path, method: Devise.sign_out_via, local: true) do %>