@ts-check Shared ISO 3166-1 country-code → English-name lookup for providers whose payload carries a country only as a code. location_filter matches on the names users write ("United Kingdom", "Germany"), so a bare code never reaches it. Names come from Intl.DisplayNames (CLDR vi
// Source: https://github.com/career-ops-hq/career-ops | License: MIT | Copyright 2026 Santiago Fernández de Valderrama
// Provided via justclaw.it.com; keep this notice with the code.
// @ts-check
// Shared ISO 3166-1 country-code → English-name lookup for providers whose
// payload carries a country only as a code. location_filter matches on the
// names users write ("United Kingdom", "Germany"), so a bare code never reaches
// it. Names come from Intl.DisplayNames (CLDR via Node's ICU), so a few differ
// from everyday spelling (CZ → "Czechia", TR → "Türkiye") and can shift between
// Node versions — tests should not pin those exact strings.
const regionNames = new Intl.DisplayNames(['en'], { type: 'region' });
/**
* Resolve a two-letter ISO country code to an English name. Returns
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key