Sha256: 39df61b460cca39a24725e414ec2f44344a3ef20e2a24bea64288fdfa2283f9b

Contents?: true

Size: 810 Bytes

Versions: 639

Compression:

Stored size: 810 Bytes

Contents

# encoding: utf-8

module I18n
  module Locale
    module Tag
      autoload :Parents, 'i18n/locale/tag/parents'
      autoload :Rfc4646, 'i18n/locale/tag/rfc4646'
      autoload :Simple,  'i18n/locale/tag/simple'

      class << self
        # Returns the current locale tag implementation. Defaults to +I18n::Locale::Tag::Simple+.
        def implementation
          @@implementation ||= Simple
        end

        # Sets the current locale tag implementation. Use this to set a different locale tag implementation.
        def implementation=(implementation)
          @@implementation = implementation
        end

        # Factory method for locale tags. Delegates to the current locale tag implementation.
        def tag(tag)
          implementation.tag(tag)
        end
      end
    end
  end
end

Version data entries

639 entries across 518 versions & 97 rubygems

Version Path
i18n-1.14.6 lib/i18n/locale/tag.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/i18n-1.14.5/lib/i18n/locale/tag.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/i18n-1.14.1/lib/i18n/locale/tag.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/i18n-1.14.1/lib/i18n/locale/tag.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/i18n-1.14.1/lib/i18n/locale/tag.rb
katalyst-govuk-formbuilder-1.9.2 vendor/bundle/ruby/3.3.0/gems/i18n-1.14.5/lib/i18n/locale/tag.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/i18n-1.14.5/lib/i18n/locale/tag.rb
i18n-1.14.5 lib/i18n/locale/tag.rb
i18n-1.14.4 lib/i18n/locale/tag.rb
i18n-1.14.3 lib/i18n/locale/tag.rb
mlh-rubocop-config-1.0.3 vendor/bundle/ruby/3.2.0/gems/i18n-1.14.1/lib/i18n/locale/tag.rb
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/i18n-1.14.1/lib/i18n/locale/tag.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/i18n-1.12.0/lib/i18n/locale/tag.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/i18n-1.14.1/lib/i18n/locale/tag.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/i18n-1.10.0/lib/i18n/locale/tag.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/i18n-1.14.1/lib/i18n/locale/tag.rb
mlh-rubocop-config-1.0.2 vendor/bundle/ruby/3.2.0/gems/i18n-1.14.1/lib/i18n/locale/tag.rb
fablicop-1.10.3 vendor/bundle/ruby/3.2.0/gems/i18n-1.14.1/lib/i18n/locale/tag.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/i18n-1.10.0/lib/i18n/locale/tag.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/i18n-1.14.1/lib/i18n/locale/tag.rb