Skip to content

printLanguageTag

printLanguageTag(tag): string

Defined in: packages/format-language-tag/src/print-language-tag.ts:9

Serialises a language tag.

The result is in the case convention RFC 5646 §2.1.1 recommends, whatever the tag was parsed from, because case is not part of a tag’s identity.

LanguageTag

string