Add Spanish Spain locale, SVG country flags, and geo-aware flag display
- Add es-ES (Spanish Spain) locale with full translation — uses Spain-specific
vocabulary (vídeo, consigue, volver, informe de errores, añadir)
- Replace emoji flags in LanguageSwitcher with SVG images from hampusborgos/
country-flags, stored as static assets in /public/flags/
- Geo-aware flag for English: reads CF-IPCountry via Cloudflare runtime cf object
(falls back to CF-IPCountry header) and shows the visitor's country flag when
on the English locale — e.g. British users see the Union Jack, Australians see
the Australian flag, defaulting to the US flag otherwise
- Add getFlagCountryCode() helper in i18n/utils.ts with ENGLISH_COUNTRY_FLAG_MAP
(GB, AU, CA, IE, NZ, ZA, IN, SG, PH) and LOCALE_FLAG_COUNTRY per locale
- Thread countryCode through middleware → App.Locals → pages → SiteFooter →
LanguageSwitcher
- Exclude /flags/* from Cloudflare Worker routing so SVGs are served as static
assets directly
https://claude.ai/code/session_01Ek5Qwg11ePJwKdeS1x6LwS