summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Zallmann <tzallmann@gitlab.com>2017-12-12 06:23:15 +0000
committerTim Zallmann <tzallmann@gitlab.com>2017-12-12 06:23:15 +0000
commitba731b2ab2426745486f87bde006fa59c4bfcdd8 (patch)
tree543a69fca936b951a83fb1a23a6aee262d161cb1
parentc367d1d5be1b392bed3440619023e37d0c42e60f (diff)
parent968ee8d6826a76725a8f11350f3aa6701233f383 (diff)
downloadgitlab-ce-ba731b2ab2426745486f87bde006fa59c4bfcdd8.tar.gz
Merge branch 'winh-i18n-placeholder-names' into 'master'
Clarify casing of I18N placeholder names See merge request gitlab-org/gitlab-ce!15867
-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: