Sha256: 0a1a68b76e897e2b162de354b9eb5b1a598cae71f5226b200d7fb30449b9e38f
Contents?: true
Size: 590 Bytes
Versions: 3
Compression:
Stored size: 590 Bytes
Contents
require "yaml" module IsoDoc module Gb class Convert < IsoDoc::Convert def i18n_init(lang, script) super y = if lang == "en" YAML.load_file(File.join(File.dirname(__FILE__), "i18n-en.yaml")) elsif lang == "zh" && script == "Hans" YAML.load_file(File.join(File.dirname(__FILE__), "i18n-zh-Hans.yaml")) else YAML.load_file(File.join(File.dirname(__FILE__), "i18n-zh-Hans.yaml")) end @labels = @labels.merge(y) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
asciidoctor-gb-0.2.4 | lib/isodoc/gb/i18n.rb |
asciidoctor-gb-0.2.3 | lib/isodoc/gb/i18n.rb |
asciidoctor-gb-0.2.2 | lib/isodoc/gb/i18n.rb |