class I18n::Backend::LazyLoadable
def load_translations_and_collect_file_errors(files)
translations as expected by the name. The method returns a list of
Loads each file supplied and asserts that the file only loads
def load_translations_and_collect_file_errors(files) errors = [] load_translations(files) do |file, loaded_translations| assert_file_named_correctly!(file, loaded_translations) rescue FilenameIncorrect => e errors << e end errors end