From 26c8f13708f1eb6ed1d207ec656c85ac70632a66 Mon Sep 17 00:00:00 2001 From: Bob Van Landuyt Date: Sat, 30 Jun 2018 14:20:29 +0200 Subject: [DOC] Add note for variable usage in singular Avoiding a count variable allows more natural translation in some languages. --- doc/development/i18n/externalization.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/development/i18n') diff --git a/doc/development/i18n/externalization.md b/doc/development/i18n/externalization.md index 4ba9958e2c6..f7d703b8f0b 100644 --- a/doc/development/i18n/externalization.md +++ b/doc/development/i18n/externalization.md @@ -174,6 +174,8 @@ For example use `%{created_at}` in Ruby but `%{createdAt}` in JavaScript. # => When size == 2: 'There are 2 mice.' ``` + Avoid using `%d` or count variables in sigular strings. This allows more natural translation in some languages. + - In JavaScript: ```js -- cgit v1.2.1