lib/isodoc/iho/init.rb in metanorma-iho-0.2.2 vs lib/isodoc/iho/init.rb in metanorma-iho-0.2.3
- old
+ new
@@ -13,10 +13,12 @@
html = HtmlConvert.new(language: lang, script: script)
@xrefs = Xref.new(lang, script, html, labels, options)
end
def i18n_init(lang, script, i18nyaml = nil)
- @i18n = I18n.new(lang, script, i18nyaml || @i18nyaml)
+ @i18n = I18n.new(
+ lang, script, i18nyaml ||
+ Metanorma::IHO.configuration.i18nyaml || @i18nyaml)
end
end
end
end