Skip to content

Commit

Permalink
~ Update README about #213
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
PikachuEXE committed Sep 17, 2014
1 parent 775974d commit 4db66f5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ Then get the JS files following the instructions below.

**There are two ways to get `translations.js`.**

1. This `translations.js` file can be automatically generated by the `I18n::JS::Middleware`.
Just add `config.middleware.use I18n::JS::Middleware` to your `config/application.rb` file.
1. This `translations.js` file can be automatically generated by the `I18n::JS::Middleware`.
Just add `config.middleware.use I18n::JS::Middleware` to your `config/application.rb` file.
Notice: Don't add this middleware if you are using [asset pipeline](http://guides.rubyonrails.org/asset_pipeline.html)!
2. If you can't or prefer not to generate this file,
you can move the middleware line to your `config/environments/development.rb` file
and run `rake i18n:js:export` before deploying.
This will export all translation files, including the custom scopes
you may have defined on `config/i18n-js.yml`.
If `I18n.available_locales` is set (e.g. in your Rails `config/application.rb` file)
then only the specified locales will be exported.
This will export all translation files, including the custom scopes
you may have defined on `config/i18n-js.yml`.
If `I18n.available_locales` is set (e.g. in your Rails `config/application.rb` file)
then only the specified locales will be exported.
Current version of `i18n.js` will also be exported to avoid version mismatching by downloading.

#### Export Configuration
Expand Down

0 comments on commit 4db66f5

Please sign in to comment.