Traditional Chinese, as it is spoken in Taiwan, now uses the locale code zh-Hant_TW while simplified Chinese spoken in Taiwan uses the locale zh-Hans_TW. Table 3 lists some of the other custom tags that identify a particular dialect or script.
To illustrate the difference between language IDs and locale IDs, consider the following example. The dialect for a resident of Great Britain is specified by the code en-GB. The commonly used locale for that same person is en_GB. If you wanted to be very precise when specifying the locale, you could specify the locale code as en-GB_GB. This specifies a person who speaks the British dialect of English and who resides in Great Britain. If that same person moved to the United States, the appropriate locale would be en-GB_US, which would identify a person who speaks British English but uses the regional settings associated with the United States.