New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

thedarkone-i18n

Package Overview
Dependencies
Maintainers
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

thedarkone-i18n

  • 0.2.0
  • Rubygems
  • Socket score

Version published
Maintainers
6
Created
Source

h1. Ruby I18n

Ruby Internationalization and localization solution.

Features:

  • translation and localization
  • interpolation of values to translations (Ruby 1.9 compatible syntax)
  • pluralization (CLDR compatible)
  • flexible defaults
  • bulk lookup
  • lambdas as translation data
  • custom key/scope separator
  • custom exception handlers
  • extensible architecture with a swappable backend

Experimental, pluggable features:

  • lambda pluralizers stored as translation data
  • RFC4647 compliant locale fallbacks (with optional RFC4646 locale validation)
  • backend cache

For more information and lots of resources see: "http://rails-i18n.org/wiki":http://rails-i18n.org/wiki

h2. Fast backend

This fork includes a @Fast@ backend that optimizes for the most common lookups and makes them about 20x (for @t(:'foo.bar.baz')@) or 6x (for @t(:'foo.bar.baz', :a=>'A', :b=>'B')@) times faster than the original @Simple@ backend. The @Fast@ backend is slightly less memory efficient and is slower to @reload!@, but should be a great choice for production environment.

h3. Branches

"2-3-stable":http://github.com/thedarkone/i18n/tree/2-3-stable branch is for the old @I18n@ gem shipped with Rails 2.3 "master":http://github.com/thedarkone/i18n/tree/master is for the current @I18n@ gem version

h3. Usage

Clone the repo as a plugin into your Rails app.

  # in initializer or enviroment.rb
  I18n.backend = I18n::Backend::Fast.new

h2. Authors

h2. License

MIT License. See the included MIT-LICENCE file.

FAQs

Package last updated on 10 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc