README.md in i18n-tasks-0.6.1 vs README.md in i18n-tasks-0.6.2
- old
+ new
@@ -9,18 +9,18 @@
i18n-tasks improves this by analysing code statically, without running it. It scans calls such as `I18n.t('some.key')` and provides reports on key usage, missing, and unused keys.
It can also pre-fill missing keys, including from Google Translate, and it can remove unused keys as well.
i18n-tasks can be used with any project using [i18n][i18n-gem] (default in Rails), or similar, even if it isn't ruby.
-<img width="534" height="288" src="https://raw.github.com/glebm/i18n-tasks/master/doc/img/i18n-tasks.png">
+<img width="539" height="331" src="https://raw.github.com/glebm/i18n-tasks/master/doc/img/i18n-tasks.png">
## Installation
Add to Gemfile:
```ruby
-gem 'i18n-tasks', '~> 0.6.0'
+gem 'i18n-tasks', '~> 0.6.2'
```
## Usage
@@ -265,11 +265,17 @@
See this basic [pattern scanner](/lib/i18n/tasks/scanners/pattern_scanner.rb) for reference.
### Fine-tuning
-Tasks may incorrectly report framework i18n keys as missing, also some patterns may not be detected.
-When all else fails, use the options below.
+Add hints to static analysis with magic comment hints (lines starting with `(#|/) i18n-tasks-use` by default):
+
+```ruby
+# i18n-tasks-use t('activerecord.models.user') # let i18n-tasks know the key is used
+User.model_name.human
+```
+
+You can also explicitly ignore keys appearing in locale files:
```yaml
# config/i18n-tasks.yml
# do not report these keys as unused
ignore_unused: