svenfuchs/rails-i18n — Issue #188: Selective locale loading
Author: nashbridges
Created: 2012-02-26 07:51:31+00:00
State: open

Currently gem loads all existing locales, which consumes at least 350kb of memory and takes some (maybe not significant) time to compile, whereas application usually needs only couple of locales.

We could rely on I18n.available_locales to prevent loading unused ones, but I think it would be not backward compatible. Maybe we should introduce configuration rule like

config.rails_i18n.load_only_available_locales = true

Any thoughts?