A collection of I18n
assertions I use in daily life.
assert_no_missing_translations
– Checks that no missing translation errors occurred inside the blockassert_all_locales_have_all_translations_available_to_the_default_locale
– Makes sure all your locale translations files are in sync with your default locale.assert_localized_file_availability
– Checks that a file is exists in allavailable_locales
.
each_locale
– Iterates over each locale, passing in the locale as a parameter to the block.with_each_locale
– Iterates over each locale, setting `I18n.locale` and running the block for each locale in turn.