Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
I18n namespace injection with fallback functionality
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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
Something went wrong with that request. Please try again.