Sha256: 8759a7df52d8de72474c958b27eb9d6b39ffcc892c16317695235b2271375ae3

Contents?: true

Size: 589 Bytes

Versions: 21

Compression:

Stored size: 589 Bytes

Contents

module IsoDoc
  module Iso
    class I18n < IsoDoc::I18n
      def load_file(fname)
        YAML.load_file(File.join(File.dirname(__FILE__), fname))
      end

      def load_yaml1(lang, script)
        y = if lang == "en" then load_file("i18n-en.yaml")
            elsif lang == "fr" then load_file("i18n-fr.yaml")
            elsif lang == "ru" then load_file("i18n-ru.yaml")
            elsif lang == "zh" && script == "Hans"
              load_file("i18n-zh-Hans.yaml")
            else load_file("i18n-en.yaml")
            end
        super.deep_merge(y)
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
metanorma-iso-2.1.2 lib/isodoc/iso/i18n.rb