summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2017-12-11 21:24:05 +0100
committerWinnie Hellmann <winnie@gitlab.com>2017-12-11 21:24:05 +0100
commit968ee8d6826a76725a8f11350f3aa6701233f383 (patch)
tree82b4437664df6419c4ab585fac94cf69f64318df
parent0cdc840b7fd710e58130a06e94d508c7c8cb133b (diff)
downloadgitlab-ce-winh-i18n-placeholder-names.tar.gz
Clarify casing of I18N placeholder nameswinh-i18n-placeholder-names
-rw-r--r--doc/development/i18n/externalization.md3
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: