I18n namespace injection with fallback functionality
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec/lib
test
.document
.gitignore
Gemfile
LICENSE.txt
README.rdoc
Rakefile
VERSION
i18n_namespace.gemspec

README.rdoc

i18n_namespace

I18n.namespace = :administrator

# with a namespace set, these are the lookup keys
# administrator.home.index.content
# home.index.content
t('home.index.content')

# your namespace can be an array too
I18n.namespace = [:administrator, :special_club]

# administrator.special_club.home.index.content
# administrator.home.index.content
# home.index.content