- return array(
- array( 'fr', 'two-letter code' ),
- array( 'fr-latn', 'two-letter code with lower case script code' ),
- array( 'fr-Latn-FR', 'two-letter code with title case script code and uppercase country code' ),
- array( 'fr-Latn-419', 'two-letter code with title case script code and region number' ),
- array( 'fr-FR', 'two-letter code with uppercase' ),
- array( 'ax-TZ', 'Not in the registry, but well-formed' ),
- array( 'fr-shadok', 'two-letter code with variant' ),
- array( 'fr-y-myext-myext2', 'non-x singleton' ),
- array( 'fra-Latn', 'ISO 639 can be 3-letters' ),
- array( 'fra', 'three-letter language code' ),
- array( 'fra-FX', 'three-letter language code with country code' ),
- array( 'i-klingon', 'grandfathered with singleton' ),
- array( 'I-kLINgon', 'tags are case-insensitive...' ),
- array( 'no-bok', 'grandfathered without singleton' ),
- array( 'i-enochian', 'Grandfathered' ),
- array( 'x-fr-CH', 'private use' ),
- array( 'es-419', 'two-letter code with region number' ),
- array( 'en-Latn-GB-boont-r-extended-sequence-x-private', 'weird, but well-formed' ),
- array( 'ab-x-abc-x-abc', 'anything goes after x' ),
- array( 'ab-x-abc-a-a', 'anything goes after x, including several non-x singletons' ),
- array( 'i-default', 'grandfathered' ),
- array( 'abcd-Latn', 'Language of 4 chars reserved for future use' ),
- array( 'AaBbCcDd-x-y-any-x', 'Language of 5-8 chars, registered' ),
- array( 'de-CH-1901', 'with country and year' ),
- array( 'en-US-x-twain', 'with country and singleton' ),
- array( 'zh-cmn', 'three-letter variant' ),
- array( 'zh-cmn-Hant', 'three-letter variant and script' ),
- array( 'zh-cmn-Hant-HK', 'three-letter variant, script and country' ),
- array( 'xr-p-lze', 'Extension' ),
- );
+ return [
+ [ 'fr', 'two-letter code' ],
+ [ 'fr-latn', 'two-letter code with lower case script code' ],
+ [ 'fr-Latn-FR', 'two-letter code with title case script code and uppercase country code' ],
+ [ 'fr-Latn-419', 'two-letter code with title case script code and region number' ],
+ [ 'fr-FR', 'two-letter code with uppercase' ],
+ [ 'ax-TZ', 'Not in the registry, but well-formed' ],
+ [ 'fr-shadok', 'two-letter code with variant' ],
+ [ 'fr-y-myext-myext2', 'non-x singleton' ],
+ [ 'fra-Latn', 'ISO 639 can be 3-letters' ],
+ [ 'fra', 'three-letter language code' ],
+ [ 'fra-FX', 'three-letter language code with country code' ],
+ [ 'i-klingon', 'grandfathered with singleton' ],
+ [ 'I-kLINgon', 'tags are case-insensitive...' ],
+ [ 'no-bok', 'grandfathered without singleton' ],
+ [ 'i-enochian', 'Grandfathered' ],
+ [ 'x-fr-CH', 'private use' ],
+ [ 'es-419', 'two-letter code with region number' ],
+ [ 'en-Latn-GB-boont-r-extended-sequence-x-private', 'weird, but well-formed' ],
+ [ 'ab-x-abc-x-abc', 'anything goes after x' ],
+ [ 'ab-x-abc-a-a', 'anything goes after x, including several non-x singletons' ],
+ [ 'i-default', 'grandfathered' ],
+ [ 'abcd-Latn', 'Language of 4 chars reserved for future use' ],
+ [ 'AaBbCcDd-x-y-any-x', 'Language of 5-8 chars, registered' ],
+ [ 'de-CH-1901', 'with country and year' ],
+ [ 'en-US-x-twain', 'with country and singleton' ],
+ [ 'zh-cmn', 'three-letter variant' ],
+ [ 'zh-cmn-Hant', 'three-letter variant and script' ],
+ [ 'zh-cmn-Hant-HK', 'three-letter variant, script and country' ],
+ [ 'xr-p-lze', 'Extension' ],
+ ];