Skip to content

Commit

Permalink
chore: translate preferences page
Browse files Browse the repository at this point in the history
  • Loading branch information
kjellberg committed Apr 8, 2024
1 parent c27aaab commit 1901e28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/views/users/preferences/_form.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<%= simple_form_for(user, url: user_preferences_path, method: :patch) do |f| %>
<%= f.input :locale, placeholder: t(".locale.placeholder"), required: true, autofocus: true, prompt: t(".locale.prompt"), as: :select, collection: options_for_locale %>
<%= f.input :time_zone, placeholder: t(".timezone.placeholder"), required: true, autofocus: true %>
<%= f.input :locale, label: t(".locale.label"), placeholder: t(".locale.placeholder"), required: true, autofocus: true, prompt: t(".locale.prompt"), as: :select, collection: options_for_locale %>
<%= f.input :time_zone, label: t(".time_zone.label"), placeholder: t(".time_zone.placeholder"), required: true, autofocus: true %>
<div class="mt-4 flex justify-between items-center">
<%= f.button :submit, t(".submit_button") %>
</div>
Expand Down
6 changes: 3 additions & 3 deletions config/locales/kiqr.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,9 @@ en:
title: "User preferences"
description: "Update your user preferences."
form:
email:
label: "Email address"
placeholder: "Enter a valid email address"
time_zone:
label: "Time zone"
placeholder: "Select a time zone"
locale:
label: "Language"
prompt: "Select a language"
Expand Down

0 comments on commit 1901e28

Please sign in to comment.