Commit 968ee8d6 authored by Winnie Hellmann's avatar Winnie Hellmann

Clarify casing of I18N placeholder names

parent 0cdc840b
...@@ -215,6 +215,9 @@ There is also and alternative method to [translate messages from validation erro ...@@ -215,6 +215,9 @@ There is also and alternative method to [translate messages from validation erro
sprintf(__('Hello %{username}'), { username: 'Joe' }) => 'Hello Joe' 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 ### Plurals
- In Ruby/HAML: - In Ruby/HAML:
......
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