Sha256: 231f8ef1d3d0ef5f45c9eae3134261ef789626120bac0e07a52a70d21023f39c
Contents?: true
Size: 710 Bytes
Versions: 2
Compression:
Stored size: 710 Bytes
Contents
require 'i18n/locale/tag/simple' require 'i18n/locale/tag/rfc4646' module I18n module Locale module Tag 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
theoooo-i18n-0.2.1 | lib/i18n/locale/tag.rb |
theoooo-i18n-0.2.2 | lib/i18n/locale/tag.rb |