t country = {
    geoname_id: 6252001,
    iso_code: "US",
    names: {
      de: "USA",
      en: "United States",
      es: "Estados Unidos",
      fr: "États-Unis",
      ja: "アメリカ合衆国",
      "pt-BR": "Estados Unidos",
      ru: "США",
      "zh-CN": "美国",
    },
  };

  const city = {
    names: {
      en: "",
    },
  };

  const callback = onSuccess => {
    requestAnimationFrame(() => {
      onSuccess({
        city,
        continent,
        country,
        registered_country: country,
      });
    });
  };

  window.geoip2 = {
    country: callback,
    city: callback,
    insights: callback,
  };
}
PK