Skip to Content
  • Website
Codsen
  • Home
  • Open Source
  • Articles
  • About

backOpen Source→is-language-code→Examples

Table of Contents

  • Quick Take
  • Match registered tags without regard to letter case
  • Explain a language tag containing two region subtags
  • Explain an extended language subtag with the wrong prefix
  • Validate an extended language subtag after its registered prefix
  • Validate multiple uniquely prefixed extensions
  • Accept an IANA-grandfathered language tag
  • Reject text that does not resemble a language tag
  • Validate a private-use language tag
  • Explain why a repeated variant is invalid
  • Validate language, script, region, and variant subtags together
  • Explain an extension singleton without extension content
  • Various examples
↑ back to top

Quick Take

↑ back to top

Match registered tags without regard to letter case

↑ back to top

Explain a language tag containing two region subtags

↑ back to top

Explain an extended language subtag with the wrong prefix

↑ back to top

Validate an extended language subtag after its registered prefix

↑ back to top

Validate multiple uniquely prefixed extensions

↑ back to top

Accept an IANA-grandfathered language tag

↑ back to top

Reject text that does not resemble a language tag

↑ back to top

Validate a private-use language tag

↑ back to top

Explain why a repeated variant is invalid

↑ back to top

Validate language, script, region, and variant subtags together

↑ back to top

Explain an extension singleton without extension content

↑ back to top

Various examples

↑ back to top
back 

Copyright

All rights reserved © Roy Revelt 2026
All our open source packages are under MIT licenceopens in a new tab

Activities

🐛 See a bug? Raise an issueopens in a new tab
💘 Check out the Indiewebopens in a new tab and Libera manifestoopens in a new tab