How this tool computes its result
Parses input lines in "locale, url" format or whitespace-separated format, validates each locale against the LOCALE_REGEX (/^[a-z]{2,3}(?:-[A-Z]{2})?$/) or the special value "x-default". Validates each URL with the URL constructor, catching malformed URLs. After parsing, checks for duplicate locales and duplicate URLs across all entries (warnings only, not blocking). If entries exist but no "x-default" is present, appends a warning. Generates HTML link tags in the format `<link rel="alternate" hreflang="LOCALE" href="URL" />`.
