
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
= Mongo-I18n
MongoDB backend implementation for I18n gem.
== Supports
== Installation
From command line:
gem install mongo-i18n
At rails' 3 gemfile:
gem 'mongo-i18n'
== Usage with Rails 3
I recommend to start with Chain[https://github.com/svenfuchs/i18n/blob/master/lib/i18n/backend/chain.rb] backend while mongodb collection is empty, and move to entirely mongodb-based backend when you populate your database with all I18n messages.
Begin with:
collection = Mongo::Connection.new['my_app_related_db'].collection('i18n') I18n.backend = I18n::Backend::Chain.new(I18n::Backend::KeyValue.new(MongoI18n::Store.new(collection)), I18n.backend)
And finish with:
collection = Mongo::Connection.new['my_app_related_db'].collection('i18n') I18n.backend = I18n::Backend::KeyValue.new(MongoI18n::Store.new(collection)
If you are already using a mongodb ORM in your project (and I suppose you are, why else would you be reading this article? :), I recommend using the existing database connection:
collection = MongoMapper.database.collection('i18n') I18n.backend = I18n::Backend::KeyValue.new(MongoI18n::Store.new(collection))
== License
Mongo-I18n is licensed under Apache license. See LICENSE for details.
FAQs
Unknown package
We found that mongo-i18n demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.