Skip to content

Commit

Permalink
doc i18n:usages
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm committed Feb 24, 2014
1 parent 73e75a2 commit 7de3c41
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ base_locale: en
locales: [es, fr]
```
On Rails, if locales are set in the config file, you can make i18n tasks a lot faster by adding this to `Rakefile`:

```ruby
# disable loading :environment for i18n-tasks:
Rake::Task['i18n:setup'].clear_prerequisites
```

### Storage

```yaml
Expand Down Expand Up @@ -133,6 +140,17 @@ data:

### Usage search

Inspect all the usages with:

```bash
rake i18n:usages
```

![i18n-screenshot](https://raw.github.com/glebm/i18n-tasks/master/doc/img/i18n-usages.png "rake i18n:usages output screenshot")


Configure usage search in `config/i18n-tasks.yml`:

```yaml
# i18n usage search in source
search:
Expand Down
Binary file added doc/img/i18n-usages.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7de3c41

Please sign in to comment.