lib/dry/schema/messages/yaml.rb in dry-schema-1.0.3 vs lib/dry/schema/messages/yaml.rb in dry-schema-1.1.0
- old
+ new
@@ -28,9 +28,11 @@
attr_reader :t
# @api private
def self.build(options = EMPTY_HASH)
super do |config|
+ config.default_locale = :en unless config.default_locale
+
config.root = "%<locale>s.#{config.root}"
config.rule_lookup_paths = config.rule_lookup_paths.map { |path|
"%<locale>s.#{path}"
}