Ruby-Locale is the pure ruby library which provides basic APIs for localization. It aims to support all environments and all kind of i18n/l10n programs(GUI, WWW, library, etc), and becomes the hub of other i18n/l10n programs to handle major locale ID standards.

  • Manage Locale ID(Language Tag)
    • Thread safe. Each thread has a Locale ID.
    • POSIX, CLDR, IETF(RFC4646(BCP47)), Win32 and Java language tags and convert the tag each other.
    • Auto detect Locale ID. POSIX(Unix/Linux/*BSD), Win32, JRuby, CGI.
  • Resources
    • ISO 639-3 languages
    • ISO 3166 region(countries).
  • Support Ruby 1.8.7, Ruby 1.9.1, JRuby 1.1.4. Tested on Win32 and Linux.


$ sudo gem install locale


This program is licenced under the same licence as Ruby. (See the file 'COPYING'.)

  • locale/language.rb, locale/region.rb, locale/data/, locale/data/
    • Copyright (C) 2006 Antonio Terceiro
    • Copyright (C) 2008 Masao Mutoh <mutoh at>
  • setup.rb version 3.4.1
    • Copyright (C) 2000-2005 Minero Aoki <aamine at>
    • This file is released under LGPL. See the top of the setup.rb.


Other libraries

  • langtag-0.1.0

    by Martin Dürst <>
  • memoizable.rb

    from ActiveSupport-2.2.0 <>
  • Ruby-GetText-Package-1.92.0

    by Masao Mutoh <>



Masao Mutoh <mutoh at>

Last modified:2009/02/17 23:34:30
References:[YotaLab Storage] [Ruby-Locale HOWTO]