]> git.openstreetmap.org Git - rails.git/commitdiff
Check that pluralizable translations have an "other" key
authorTom Hughes <tom@compton.nu>
Thu, 11 Jun 2020 18:15:38 +0000 (19:15 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 11 Jun 2020 18:21:41 +0000 (19:21 +0100)
test/lib/i18n_test.rb

index 8145c3613db0812a9d4e427bc8006dee1049e3ac..1d4557c1ae3c5d081ca6fbd4e6f0e5b398703186 100644 (file)
@@ -39,6 +39,8 @@ class I18nTest < ActiveSupport::TestCase
                 assert_includes variables, Regexp.last_match(1), "#{key}.#{subkey} uses unknown interpolation variable #{Regexp.last_match(1)}"
               end
             end
+
+            assert_includes value, :other, "#{key}.other plural key missing"
           else
             assert value.is_a?(String), "#{key} is not a string"