module I18n::Locale::Tag
Constants
- RFC4646_FORMATS
- RFC4646_SUBTAGS
Public Class Methods
Returns the current locale tag implementation. Defaults to I18n::Locale::Tag::Simple
.
# File lib/i18n/locale/tag.rb, line 12 def implementation @@implementation ||= Simple end
Sets the current locale tag implementation. Use this to set a different locale tag implementation.
# File lib/i18n/locale/tag.rb, line 17 def implementation=(implementation) @@implementation = implementation end
Factory method for locale tags. Delegates to the current locale tag implementation.
# File lib/i18n/locale/tag.rb, line 22 def tag(tag) implementation.tag(tag) end