A summary of data about the Ruby ecosystem.

https://github.com/ruby-gettext/locale

Ruby-Locale is the pure ruby library which provides basic and general purpose APIs for localization.
https://github.com/ruby-gettext/locale

Keywords from Contributors

activejob activerecord mvc rubyzip zip-extraction rspec aes-encryption zip zip-archive zip-file

Last synced: about 5 hours ago
JSON representation

Repository metadata

Ruby-Locale is the pure ruby library which provides basic and general purpose APIs for localization.

README.rdoc

          = locale - locale for Ruby

Locale gem is the pure ruby library which provides basic and general
purpose APIs for localization.

This library was called as "Ruby-Locale". Since 2.0.6, this library is
called just "locale". You can call this library as "locale gem" or
"Ruby Locale" to distinguish from other "locale"s.

This library aims to support all environments which Ruby works and all
kind of programs (GUI, WWW, library, etc), and becomes the hub of
other i18n/l10n libs/apps to handle major locale ID standards.

* Manage Locale ID(Language Tag)
  * Each thread has a Locale ID.
  * POSIX, CLDR, IETF(RFC4646, 3066(BCP47)), Win32 and Java language tags 
    and convert the tag string to each other.
  * Auto detect Locale ID.
    POSIX(Unix/Linux/*BSD), Win32, JRuby, CGI(CGI, Rack, others).

* 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.

== Website
* https://github.com/ruby-gettext/locale

== Requirements
* Ruby-1.8.7 or later 
* JRuby-1.1.4 or later 

== Install

  % gem install locale

== The simplest usage

 require 'rubygems'
 require 'locale'
 
 p Locale.candidates

== APIs
The most important APIs are defined in Locale module.

* Locale.candidates - Returns the current locale candidates.
* Locale.current= - Sets the current locale(in a thread).
* Locale.default= - Sets the default locale(in the whole program).
* Locale.set_app_language_tags - Sets the locale that is supported by the App.

== License
This program is licenced under the same licence as Ruby(See COPYING) or
LGPL(Lesser General Public License: http://www.gnu.org/licenses/lgpl-3.0.txt).

* locale/language.rb, locale/region.rb, 
  locale/data/language.tab.gz, locale/data/region.tab.gz:
  * Copyright (C) 2006 Brian Pontarelli, Antonio Terceiro
  * Copyright (C) 2008,2009 Masao Mutoh 

* Others(Some files are separated from Ruby-GetText-Package-1.92.0)
  * Copyright (C) 2008,2009 Masao Mutoh 

== References
=== Other libraries
* langtag-0.1.0 
  * by Martin Dürst 

* gettext gem
  * by The ruby-gettext project 

=== Documents
* The Open Group Base Specifications Issue 6 IEEE Std 1003.1, 2004 Edition 
  Internationalization Variables 
  

* GNU `gettext' utilities - Setting the Locale through Environment Variables
  

* BCP47 / RFC4646, RFC3066 - Tags for Identifying Languages (Keep RFC3066 compatibility)
  
  

* Unicode Locale Data Markup Language (LDML) 1.6.1
  Unicode Language and Locale Identifiers
  

* JDK 6 Documentation - Java Supported Locales
  

* Microsoft Developer Network - Locales and Languages
  

* ISO 639

* ISO 3166

== Maintainer

=== Active

Kouhei Sutou 

=== Inactive

Masao Mutoh 

        

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 7 days ago

Total Commits: 175
Total Committers: 13
Avg Commits per committer: 13.462
Development Distribution Score (DDS): 0.411

Commits in past year: 1
Committers in past year: 1
Avg Commits per committer in past year: 1.0
Development Distribution Score (DDS) in past year: 0.0

Name Email Commits
Kouhei Sutou k****u@c****m 103
Masao Mutoh m****h@h****p 38
Masao Mutoh m****a@g****m 19
OZAWA Sakuro g****b@2****g 4
OZAWA Sakuro 1****o 2
J. Pablo Fernández p****o@p****m 2
moguno s****s@0****p 1
Peter Leitzen s****l 1
Igor Victor g****a@y****u 1
Dan Čermák d****k@s****m 1
Benoit Daloze e****p@g****m 1
284km a****m@g****m 1
mutomasa m****a@m****t 1

Committer domains:


Issue and Pull Request metadata

Last synced: about 1 month ago

Total issues: 8
Total pull requests: 12
Average time to close issues: 3 days
Average time to close pull requests: about 9 hours
Total issue authors: 6
Total pull request authors: 10
Average comments per issue: 4.63
Average comments per pull request: 1.33
Merged pull request: 8
Bot issues: 0
Bot pull requests: 0

Past year issues: 1
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 1
Past year pull request authors: 0
Past year average comments per issue: 0.0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/ruby-gettext/locale

Top Issue Authors

  • 375gnu (2)
  • mtasaka (2)
  • Biep (1)
  • okeeblow (1)
  • sakuro (1)
  • brauliobo (1)

Top Pull Request Authors

  • sakuro (2)
  • dcermak (2)
  • splattael (1)
  • moguno (1)
  • 284km (1)
  • gogainda (1)
  • eregon (1)
  • bastelfreak (1)
  • nathan-nhm (1)
  • jordimassaguerpla (1)

Top Issue Labels

Top Pull Request Labels


Package metadata

gem.coop: locale

Ruby-Locale is the pure ruby library which provides basic APIs for localization.

  • Homepage: https://github.com/ruby-gettext/locale
  • Documentation: http://www.rubydoc.info/gems/locale/
  • Licenses: Ruby,LGPLv3+
  • Latest release: 2.1.4 (published over 1 year ago)
  • Last Synced: 2025-12-09T00:30:56.323Z (3 days ago)
  • Versions: 16
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 62,207,512 Total
  • Docker Downloads: 546,807,357
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 0.155%
    • Docker downloads count: 0.181%
    • Downloads: 0.438%
  • Maintainers (4)
rubygems.org: locale

Ruby-Locale is the pure ruby library which provides basic APIs for localization.

  • Homepage: https://github.com/ruby-gettext/locale
  • Documentation: http://www.rubydoc.info/gems/locale/
  • Licenses: Ruby,LGPLv3+
  • Latest release: 2.1.4 (published over 1 year ago)
  • Last Synced: 2025-12-07T18:01:52.077Z (4 days ago)
  • Versions: 16
  • Dependent Packages: 35
  • Dependent Repositories: 2,045
  • Downloads: 62,194,464 Total
  • Docker Downloads: 546,807,357
  • Rankings:
    • Docker downloads count: 0.216%
    • Downloads: 0.444%
    • Dependent repos count: 0.687%
    • Dependent packages count: 0.715%
    • Average: 4.035%
    • Forks count: 9.679%
    • Stargazers count: 12.472%
  • Maintainers (4)

Score: 26.375812912928545