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 @@ -66,6 +66,13 @@ The basic usage of the MessageFormat allows you to use placeholders (called
6666 'say_hello' => "Hello {name}!",
6767 ];
6868
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+
6976Everything within the curly braces (``{...} ``) is processed by the formatter
7077and replaced by its placeholder::
7178
@@ -104,7 +111,7 @@ typical usage of this is gender:
104111 <body >
105112 <trans-unit id =" invitation_title" >
106113 <source >invitation_title</source >
107- <target >{organizer_gender, select,
114+ <target >{organizer_gender, select,
108115 female {{organizer_name} has invited you for her party!}
109116 male {{organizer_name} has invited you for his party!}
110117 other {{organizer_name} have invited you for their party!}
You can’t perform that action at this time.
0 commit comments