Clarify casing of I18N placeholder names

This commit is contained in:
Winnie Hellmann 2017-12-11 21:24:05 +01:00
parent 0cdc840b7f
commit 968ee8d682
1 changed files with 3 additions and 0 deletions

View File

@ -215,6 +215,9 @@ There is also and alternative method to [translate messages from validation erro
sprintf(__('Hello %{username}'), { username: 'Joe' }) => 'Hello Joe'
```
The placeholders should match the code style of the respective source file.
For example use `%{created_at}` in Ruby but `%{createdAt}` in JavaScript.
### Plurals
- In Ruby/HAML: