@@ -170,9 +170,9 @@ You can pass an array of values to replace placeholders in the language string a
170170
171171 // The language file, Tests.php:
172172 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.' ,
176176 ];
177177
178178 // 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
186186You can also use named keys to make it easier to keep things straight, if you'd like::
187187
188188 // Displays "I have 3 apples."
189- echo lang(" Tests.namedApples" , ['number_apples' => 3]);
189+ echo lang(' Tests.namedApples' , ['number_apples' => 3]);
190190
191191Obviously, you can do more than just number replacement. According to the
192192`official ICU docs <https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/classMessageFormat.html#details >`_ for the underlying
0 commit comments