@@ -18,13 +18,15 @@ manually, but then you should just use the ``ChoiceType`` directly.
18
18
| Rendered as | can be various tags (see :ref: `forms-reference-choice-tags `) |
19
19
+-------------+------------------------------------------------------------------------+
20
20
| Options | - `input `_ |
21
+ | | - `intl `_ |
21
22
| | - `regions `_ |
22
23
+-------------+------------------------------------------------------------------------+
23
24
| Overridden | - `choices `_ |
24
25
| options | |
25
26
+-------------+------------------------------------------------------------------------+
26
27
| Inherited | from the :doc: `ChoiceType </reference/forms/types/choice >` |
27
28
| options | |
29
+ | | - `choice_translation_domain `_ |
28
30
| | - `expanded `_ |
29
31
| | - `multiple `_ |
30
32
| | - `placeholder `_ |
@@ -73,6 +75,28 @@ on your underlying object. Valid values are:
73
75
74
76
The ``intltimezone `` input type was introduced in Symfony 4.3.
75
77
78
+ intl
79
+ ~~~~
80
+
81
+ *type* *: ``boolean `` **default **: ``false ``
82
+
83
+ .. versionadded :: 4.3
84
+
85
+ This option was introduced in Symfony 4.3.
86
+
87
+ If this option is set to ``true ``, the timezone selector will display the
88
+ timezones from the `ICU Project `_ via the :doc: `Intl component </components/intl >`
89
+ instead of the regular PHP timezones.
90
+
91
+ Although both sets of timezones are pretty similar, only the ones from the Intl
92
+ component can be translated to any language. To do so, set the desired locale
93
+ with the ``choice_translation_locale `` option.
94
+
95
+ .. note ::
96
+
97
+ The :doc: `Timezone constraint </reference/constraints/Timezone >` can validate
98
+ both timezone sets and adapts to the selected set automatically.
99
+
76
100
regions
77
101
~~~~~~~
78
102
@@ -105,6 +129,8 @@ Inherited Options
105
129
106
130
These options inherit from the :doc: `ChoiceType </reference/forms/types/choice >`:
107
131
<
7FA8
div aria-hidden="true" class="position-absolute top-0 d-flex user-select-none DiffLineTableCellParts-module__comment-indicator--eI0hb">
132
+ .. include :: /reference/forms/types/options/choice_translation_domain.rst.inc
133
+
108
134
.. include :: /reference/forms/types/options/expanded.rst.inc
109
135
110
136
.. include :: /reference/forms/types/options/multiple.rst.inc
@@ -152,3 +178,5 @@ The actual default value of this option depends on other field options:
152
178
.. include :: /reference/forms/types/options/mapped.rst.inc
153
179
154
180
.. include :: /reference/forms/types/options/required.rst.inc
181
+
182
+ .. _`ICU Project` : http://site.icu-project.org/
0 commit comments