Commit 26c8f137 authored by Bob Van Landuyt's avatar Bob Van Landuyt

[DOC] Add note for variable usage in singular

Avoiding a count variable allows more natural translation in some languages.
parent 63c64ab3
...@@ -174,6 +174,8 @@ For example use `%{created_at}` in Ruby but `%{createdAt}` in JavaScript. ...@@ -174,6 +174,8 @@ For example use `%{created_at}` in Ruby but `%{createdAt}` in JavaScript.
# => When size == 2: 'There are 2 mice.' # => 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: - In JavaScript:
```js ```js
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment