diff --git a/config/locales/en.yml b/config/locales/en.yml index 1699ebc2..f8dc9ecf 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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". diff --git a/test/unit/locales_test.rb b/test/unit/locales_test.rb new file mode 100644 index 00000000..8b967e0e --- /dev/null +++ b/test/unit/locales_test.rb @@ -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