Skip to content

Commit 405f040

Browse files
committed
Update language field/constraint
1 parent f04f620 commit 405f040

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

reference/constraints/Language.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
Language
22
========
33

4-
Validates that a value is a valid `ISO 639-1`_ language code.
4+
Validates that a value is a valid language *Unicode language identifier*
5+
(e.g. ``fr`` or ``zh-Hant``).
56

67
+----------------+------------------------------------------------------------------------+
78
| Applies to | :ref:`property or method <validation-property-target>` |
@@ -81,5 +82,3 @@ message
8182
**type**: ``string`` **default**: ``This value is not a valid language.``
8283

8384
This message is shown if the string is not a valid language code.
84-
85-
.. _`ISO 639-1`: http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes

0 commit comments

Comments
 (0)