Skip to content

Commit

Permalink
README: Improve "Configuration" section
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Apr 15, 2019
1 parent 5587007 commit 74cb817
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Expand Up @@ -29,7 +29,17 @@ export default {
};
```

The only configuration option at the moment is `whitelist`, which accepts an
### `whitelist`

If you use dynamic translations keys like this:
```js
this.intl.t(`countries.${code}`)
```
then ember-intl-analyzer can not easily understand what translation keys are
being used here. In that case it will ignore the dynamic translation key and
show the corresponding translations as unused.

To prevent that from happening you can configure a `whitelist`, which accepts an
array of regular expressions that will be checked when looking for unused
translations.

Expand Down

0 comments on commit 74cb817

Please sign in to comment.