File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ Messages (i.e. strings) in applications are almost never completely static.
12
12
They contain variables or other complex logic like pluralization. In order to
13
13
handle this, the Translator component supports the `ICU MessageFormat `_ syntax.
14
14
15
+ .. tip ::
16
+
17
+ You can test out examples of the ICU MessageFormatter in this `online editor `_.
18
+
15
19
Using the ICU Message Format
16
20
----------------------------
17
21
@@ -433,6 +437,7 @@ The ``number`` formatter allows you to format numbers using Intl's :phpclass:`Nu
433
437
// "9 988 776,65 €"
434
438
echo $translator->trans('value_of_object', ['value' => 9988776.65]);
435
439
440
+ .. _`online editor` : http://format-message.github.io/icu-message-format-for-translators/
436
441
.. _`ICU MessageFormat` : http://userguide.icu-project.org/formatparse/messages
437
442
.. _`switch statement` : https://php.net/control-structures.switch
438
443
.. _`Language Plural Rules` : http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html
You can’t perform that action at this time.
0 commit comments