lib/metanorma/requirements/selector.rb in mn-requirements-0.1.8 vs lib/metanorma/requirements/selector.rb in mn-requirements-0.1.9
- old
+ new
@@ -12,11 +12,12 @@
def initialize(options)
@default = options[:default]
@i18n = i18n_klass(options[:lang] || "en",
options[:script] || "Latn",
options[:locale],
- options[:i18nhash])
- @labels = @i18n.get.deep_merge(options[:labels] || {})["requirements"]
+ options[:labels])
+ # @labels = @i18n.get.deep_merge(options[:labels] || {})["requirements"]
+ @labels = @i18n.get["requirements"]
@models =
model_names.each_with_object({}) { |k, m| m[k] = create(k) }
end
def model_names