10000 [Validator] Add docs for "canonicalize" option at `Locale` validation constraint by phansys · Pull Request #9248 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[Validator] Add docs for "canonicalize" option at Locale validation constraint #9248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 23, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Prev Previous commit
Final changes
  • Loading branch information
javiereguiluz authored Feb 23, 2018
commit 14f10bca13383beac76444c9043a02b4ca507b34
5 changes: 2 additions & 3 deletions reference/constraints/Locale.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Locale

Validates that a value is a valid locale.

The "value" for each locale is any of `ICU format locale IDs`_. For example, the
two letter `ISO 639-1`_ *language* code (e.g. ``fr``), or the language code
The "value" for each locale is any of the `ICU format locale IDs`_. For example,
the two letter `ISO 639-1`_ *language* code (e.g. ``fr``), or the language code
followed by an underscore (``_``) and the `ISO 3166-1 alpha-2`_ *country* code
(e.g. ``fr_FR`` for French/France).

Expand Down Expand Up @@ -112,4 +112,3 @@ the validity of the given locale (e.g. ``FR-fr.utf8`` is transformed into ``fr_F
.. _`ICU format locale IDs`: http://userguide.icu-project.org/locale
.. _`ISO 639-1`: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
.. _`ISO 3166-1 alpha-2`: https://en.wikipedia.org/wiki/ISO_3166-1#Current_codes
.. _`ICU format locale IDs`: http://userguide.icu-project.org/locale#TOC-Canonicalization
0