[DOC] Add note for variable usage in singular

Avoiding a count variable allows more natural translation in some languages.
This commit is contained in:
Bob Van Landuyt 2018-06-30 14:20:29 +02:00
parent 63c64ab323
commit 26c8f13708
1 changed files with 2 additions and 0 deletions

View File

@ -174,6 +174,8 @@ For example use `%{created_at}` in Ruby but `%{createdAt}` in JavaScript.
# => When size == 2: 'There are 2 mice.'
```
Avoid using `%d` or count variables in sigular strings. This allows more natural translation in some languages.
- In JavaScript:
```js