Options
style
The formatting style to use. Options are "narrow", "short", and "long" (default: "long").
Examples:
fallback
What to return if the input is valid but no matching display name is found:
"code"(default) - Returns the input code."none"- Returns an empty string.
Examples:
languageDisplay
How language names are displayed:
"dialect"(default) - Shows regional dialects by their specific names (e.g., "nl-BE" as "Flemish")."standard"- Uses a standard format for all languages (e.g., "nl-BE" as "Dutch (Belgium)").
WARNING
This option is only usable when formatting language names
Examples:
"Attributions and copyright licensing" by Mozilla Contributors, licensed under CC-BY-SA 4.0.