Skip to content

Commit

Permalink
Updated README to include a small note on the posibility to generate …
Browse files Browse the repository at this point in the history
…lang files pero available languages automatically
  • Loading branch information
Paco Viramontes authored and fnando committed Oct 14, 2011
1 parent 40c6f68 commit 61758e0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.rdoc
Expand Up @@ -50,6 +50,14 @@ If <tt>only</tt> is omitted all the translations will be saved. Also, make sure
- file: 'public/javascripts/pt-BR.js'
only: 'pt-BR.*'

Optionaly, you can auto generate a translation file per available locale if you specify the <tt>%{locale}</tt> placeholder.

translations:
- file: "public/javascripts/i18n/%{locale}.js"
only: '*'
- file: "public/javascripts/frontend/i18n/%{locale}.js"
only: ['frontend', 'users']

To find more examples on how to use the configuration file please refer to the tests.

=== On the Javascript
Expand Down

0 comments on commit 61758e0

Please sign in to comment.