Parses a language tag to extract base language and direction (RDF 1.2).
The full language tag (e.g., "en--ltr", "ar--rtl")
Object with language and optional direction
Parses a language tag to extract base language and direction (RDF 1.2).