languageDirection
Resolves a language's reading direction, preferring the host's override. Invalid tags and environments without locale text information fall back to left-to-right.
This is a function exported by @mapcairn/core, checked against version 0.2.0.
Signature
import { languageDirection } from "@mapcairn/core";
function languageDirection(tag: string, offered?: readonly LanguageOption[]): "ltr" | "rtl";
Parameters
tag(string)offered?(readonly LanguageOption[])
Returns
"ltr" | "rtl"