Appendix G. Language Tags

Language tags are short, standardized strings that name spoken languages—for example, “fr” (French) and “en-GB” (Great Britain English). Each tag has one or more parts, separated by hyphens, called subtags. Language tags were described in detail in Section 16.4.

This appendix summarizes the rules, standardized tags, and registration information for language tags. It contains the following reference material:

  • Rules for the first (primary) subtag are summarized in Section G.1.

  • Rules for the second subtag are summarized in Section G.2.

  • IANA-registered language tags are shown in Table G-1.

  • ISO 639 language codes are shown in Table G-2.

  • ISO 3166 country codes are shown in Table G-3.

Get HTTP: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.