Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

I18n namespace injection with fallback functionality

tag: v0.0.3

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 test
Octocat-spinner-32 .document
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 VERSION
Octocat-spinner-32 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.