diff --git a/spec/support/i18n_export.rb b/spec/support/i18n_export.rb new file mode 100644 index 00000000..aff03960 --- /dev/null +++ b/spec/support/i18n_export.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +RSpec.configure do |config| + config.before(:suite) do + # In local development, we do not want to precompile assets explicitly. + # Therefore, we might need to export the translations before running the tests. + system('bundle exec i18n export') if ENV['CI'].blank? + end +end