lib/dry/validation/messages/i18n.rb in dry-validation-0.8.0 vs lib/dry/validation/messages/i18n.rb in dry-validation-0.9.0
- old
+ new
@@ -18,8 +18,13 @@
end
def key?(key, options)
::I18n.exists?(key, options.fetch(:locale, I18n.default_locale))
end
+
+ def merge(path)
+ ::I18n.load_path << path
+ self
+ end
end
end
end