@@ -170,9 +170,9 @@ You can pass an array of values to replace placeholders in the language string a
170
170
171
171
// The language file, Tests.php:
172
172
return [
173
- " apples" => " I have {0, number} apples." ,
174
- " men" => " The top {1, number} men out-performed the remaining {0, number}" ,
175
- " namedApples" => " I have {number_apples, number, integer} apples." ,
173
+ ' apples' => ' I have {0, number} apples.' ,
174
+ ' men' => ' The top {1, number} men out-performed the remaining {0, number}' ,
175
+ ' namedApples' => ' I have {number_apples, number, integer} apples.' ,
176
176
];
177
177
178
178
// Displays "I have 3 apples."
@@ -186,7 +186,7 @@ The first item in the placeholder corresponds to the index of the item in the ar
186
186
You can also use named keys to make it easier to keep things straight, if you'd like::
187
187
188
188
// Displays "I have 3 apples."
189
- echo lang(" Tests.namedApples" , ['number_apples' => 3]);
189
+ echo lang(' Tests.namedApples' , ['number_apples' => 3]);
190
190
191
191
Obviously, you can do more than just number replacement. According to the
192
192
`official ICU docs <https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/classMessageFormat.html#details >`_ for the underlying
0 commit comments