File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 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
7070 'say_hello' => "Hello {name}!",
7171 ];
7272
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+
7380Everything within the curly braces (``{...} ``) is processed by the formatter
7481and replaced by its placeholder::
7582
@@ -108,7 +115,7 @@ typical usage of this is gender:
108115 <body >
109116 <trans-unit id =" invitation_title" >
110117 <source >invitation_title</source >
111- <target >{organizer_gender, select,
118+ <target >{organizer_gender, select,
112119 female {{organizer_name} has invited you for her party!}
113120 male {{organizer_name} has invited you for his party!}
114121 other {{organizer_name} have invited you for their party!}
You can’t perform that action at this time.
0 commit comments