Share via


Culture Simple Type

Defines the value used to specify a language for an .sdm file.

<xs:simpleType name="Culture">
    <xs:restriction
        base="string"
    >
        <xs:pattern
            value="[a-z]{2}((-[A-Z]{2})?|(-[A-Z]{3})?)"
         />
    </xs:restriction>
</xs:simpleType>

Patterns

The following pattern is defined by the Culture simple type:

[a-z]{2}((-[A-Z]{2})?|(-[A-Z]{3})?)

A string that is two or three lowercase letters defining a language, and then two, three, or four uppercase and lowercase letters defining a region. For example, en (for English), en-US (for English US), and zh-CHS (for Chinese simplified).