Class | Locale::TagList |
In: |
lib/locale/taglist.rb
|
Parent: | Array |
This provides the subclass of Array which behaves like the first(top priority) Locale::Tag object. "Locale.current.language" is same with "Locale.current[0].language".
Locale.current returns an Array of Tag(s) now. But the old Locale.current(Ruby-GetText) and Locale.get returns Locale::Object (similier with Locale::Tag::Posix). This is the class for backward compatibility.
It is recommanded to use Locale.current[0] or Locale.candidates to find the current locale instead of this function.