Skip to content

Commit

Permalink
Mention how to modify locale paths in the README
Browse files Browse the repository at this point in the history
  • Loading branch information
jim committed Sep 11, 2012
1 parent 4fabbfe commit 66aa18e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -50,3 +50,13 @@ carmen-rails [have been thoroughly TomDoc'ed](https://github.com/jim/carmen-rail

There is a [live demo app](http://carmen-rails-demo.herokuapp.com) that shows
carmen-rails in action, and includes a [step-by-step setup guide](https://github.com/jim/carmen-demo-app#readme).

## Configuration

Using this library will automatically set Carmen to use [Rails' built-in I18n functionality](http://guides.rubyonrails.org/i18n.html). This means that changing
some configuration should be done through Rails and not Carmen. For example, adding paths for additional locale files
should be done inside `config/application.rb`:

``` ruby
config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
```

0 comments on commit 66aa18e

Please sign in to comment.