diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2017-12-11 23:24:05 +0300 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2017-12-11 23:24:05 +0300 |
commit | 968ee8d6826a76725a8f11350f3aa6701233f383 (patch) | |
tree | 82b4437664df6419c4ab585fac94cf69f64318df /doc/development/i18n | |
parent | 0cdc840b7fd710e58130a06e94d508c7c8cb133b (diff) |
Clarify casing of I18N placeholder names
Diffstat (limited to 'doc/development/i18n')
-rw-r--r-- | doc/development/i18n/externalization.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/development/i18n/externalization.md b/doc/development/i18n/externalization.md index 4b65a0f4a35..43b996d9395 100644 --- a/doc/development/i18n/externalization.md +++ b/doc/development/i18n/externalization.md @@ -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: |