lib/dry/schema/messages/i18n.rb in dry-schema-1.0.2 vs lib/dry/schema/messages/i18n.rb in dry-schema-1.0.3
- old
+ new
@@ -27,10 +27,10 @@
#
# @return [String]
#
# @api public
def get(key, options = EMPTY_HASH)
- t.(key, options) if key
+ t.(key, locale: options.fetch(:locale, default_locale)) if key
end
# Check if given key is defined
#
# @return [Boolean]