Added I18n initializer
This commit is contained in:
parent
535f6ed334
commit
0b91a2c186
1 changed files with 8 additions and 0 deletions
8
config/initializers/locale.rb
Normal file
8
config/initializers/locale.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# Copyright (c) 2010, Diaspora Inc. This file is
|
||||
# licensed under the Affero General Public License version 3. See
|
||||
# the COPYRIGHT file.
|
||||
|
||||
|
||||
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
||||
I18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
||||
I18n.default_locale = :en
|
||||
Loading…
Reference in a new issue