Sha256: deba98ecd20b7a664ac27085d20372e3665fe72f061328135dacc9be5daee9d1

Contents?: true

Size: 449 Bytes

Versions: 23

Compression:

Stored size: 449 Bytes

Contents

module CiteProc
  module Ruby

    class Renderer

      def locale
        @locale ||= CSL::Locale.load
      end

      def locale=(locale)
        @locale = CSL::Locale.load(locale)
      end

      def translate(name, options = {})
        locale.translate(name, options)
      end

      # @return [String] number as an ordinal
      def ordinalize(number, options = {})
        locale.ordinalize(number, options)
      end

    end

  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
citeproc-ruby-2.1.0 lib/citeproc/ruby/renderer/locale.rb
citeproc-ruby-2.0.0 lib/citeproc/ruby/renderer/locale.rb
citeproc-ruby-1.1.14 lib/citeproc/ruby/renderer/locale.rb
citeproc-ruby-1.1.13 lib/citeproc/ruby/renderer/locale.rb
citeproc-ruby-1.1.12 lib/citeproc/ruby/renderer/locale.rb
citeproc-ruby-1.1.11 lib/citeproc/ruby/renderer/locale.rb
citeproc-ruby-1.1.10 lib/citeproc/ruby/renderer/locale.rb
citeproc-ruby-1.1.8 lib/citeproc/ruby/renderer/locale.rb
citeproc-ruby-1.1.7 lib/citeproc/ruby/renderer/locale.rb
citeproc-ruby-1.1.6 lib/citeproc/ruby/renderer/locale.rb
citeproc-ruby-1.1.5 lib/citeproc/ruby/renderer/locale.rb
citeproc-ruby-1.1.4 lib/citeproc/ruby/renderer/locale.rb
citeproc-ruby-1.1.3 lib/citeproc/ruby/renderer/locale.rb
citeproc-ruby-1.1.2 lib/citeproc/ruby/renderer/locale.rb
citeproc-ruby-1.1.1 lib/citeproc/ruby/renderer/locale.rb
citeproc-ruby-1.1.0 lib/citeproc/ruby/renderer/locale.rb
citeproc-ruby-1.0.6 lib/citeproc/ruby/renderer/locale.rb
citeproc-ruby-1.0.5 lib/citeproc/ruby/renderer/locale.rb
citeproc-ruby-1.0.4 lib/citeproc/ruby/renderer/locale.rb
citeproc-ruby-1.0.3 lib/citeproc/ruby/renderer/locale.rb