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 @@ -66,6 +66,13 @@ The basic usage of the MessageFormat allows you to use placeholders (called
66
66
'say_hello' => "Hello {name}!",
67
67
];
68
68
69
+
70
+ .. caution ::
71
+
72
+ With the previous format, placeholders were often named between ``% ``. This
73
+ character is no longer valid with the ICU MessageFormat syntax. Be careful
74
+ to rename your parameters.
75
+
69
76
Everything within the curly braces (``{...} ``) is processed by the formatter
70
77
and replaced by its placeholder::
71
78
@@ -104,7 +111,7 @@ typical usage of this is gender:
104
111
<body >
105
112
<trans-unit id =" invitation_title" >
106
113
<source >invitation_title</source >
107
- <target >{organizer_gender, select,
114
+ <target >{organizer_gender, select,
108
115
female {{organizer_name} has invited you for her party!}
109
116
male {{organizer_name} has invited you for his party!}
110
117
other {{organizer_name} have invited you for their party!}
You can’t perform that action at this time.
0 commit comments