File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,13 @@ The basic usage of the MessageFormat allows you to use placeholders (called
70
70
'say_hello' => "Hello {name}!",
71
71
];
72
72
73
+
74
+ .. caution ::
75
+
76
+ With the previous format, placeholders were often named between ``% ``. This
77
+ character is no longer valid with the ICU MessageFormat syntax. Be careful
78
+ to rename your parameters.
79
+
73
80
Everything within the curly braces (``{...} ``) is processed by the formatter
74
81
and replaced by its placeholder::
75
82
@@ -108,7 +115,7 @@ typical usage of this is gender:
108
115
<body >
109
116
<trans-unit id =" invitation_title" >
110
117
<source >invitation_title</source >
111
- <target >{organizer_gender, select,
118
+ <target >{organizer_gender, select,
112
119
female {{organizer_name} has invited you for her party!}
113
120
male {{organizer_name} has invited you for his party!}
114
121
other {{organizer_name} have invited you for their party!}
You can’t perform that action at this time.
0 commit comments