Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
static resolve(real: string | LanguageTag): LanguageTag {
const tag = typeof real === 'string' ? parseLanguageTag(real) : real;
const fast = fastTag(tag);
substituteLanguageAliases(fast);
substituteRegionAliases(fast);
addLikelySubtags(fast);
return returnTag(tag, fast);
}