From 968ee8d6826a76725a8f11350f3aa6701233f383 Mon Sep 17 00:00:00 2001 From: Winnie Hellmann Date: Mon, 11 Dec 2017 21:24:05 +0100 Subject: [PATCH] Clarify casing of I18N placeholder names --- doc/development/i18n/externalization.md | 3 +++ 1 file changed, 3 insertions(+) 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: