Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ en:
gender: Gender
hide_past_appointments: Hide past appointments
home: Home
yes: Yes
no: No
"yes": "Yes"
"no": "No"
help:
patients:
status: Patients without the required profile information are marked as "incomplete".
Expand Down
12 changes: 12 additions & 0 deletions test/unit/locales_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# frozen_string_literal: true

require 'test_helper'

class LocalesTest < ActiveSupport::TestCase
test 'yes and no are translated in every locale' do
%i[en es pt].each do |locale|
assert I18n.exists?(:yes, locale), "missing :yes in #{locale}"
assert I18n.exists?(:no, locale), "missing :no in #{locale}"
end
end
end
Loading