// Localized manifest + meta bootstrap (function () { try { var lang = localStorage.getItem("catsignals_lang_v1"); if (!lang) { var nav = (navigator.languages && navigator.languages[0]) || navigator.language || "en"; var lower = nav.toLowerCase(); if (lower.indexOf("pt") === 0) lang = "pt-BR"; else if (lower.indexOf("es") === 0) lang = "es"; else lang = "en"; } var manifest = document.querySelector('link[rel="manifest"]'); var metaDesc = document.querySelector('meta[name="description"]'); var ogDesc = document.querySelector('meta[property="og:description"]'); var twDesc = document.querySelector('meta[name="twitter:description"]'); var titleEl = document.querySelector('title'); var ogTitle = document.querySelector('meta[property="og:title"]'); var twTitle = document.querySelector('meta[name="twitter:title"]'); if (lang === "pt-BR") { if (manifest) manifest.href = "/manifest-pt.webmanifest"; var ptTitle = "FelisCare | Saúde e cuidados para gatos"; var ptDesc = "FelisCare ajuda tutores a acompanhar a saúde felina: consultas, vacinas, medicamentos, sinais clínicos e cuidados diários em um só lugar."; if (titleEl) titleEl.textContent = ptTitle; if (ogTitle) ogTitle.content = ptTitle; if (twTitle) twTitle.content = ptTitle; if (metaDesc) metaDesc.content = ptDesc; if (ogDesc) ogDesc.content = ptDesc; if (twDesc) twDesc.content = ptDesc; } else if (lang === "es") { if (manifest) manifest.href = "/manifest-es.webmanifest"; var esTitle = "FelisCare | Salud y cuidados para gatos"; var esDesc = "Monitorea señales de salud, organiza cuidados, sigue medicamentos y cuida de tu gato con más seguridad."; if (titleEl) titleEl.textContent = esTitle; if (ogTitle) ogTitle.content = esTitle; if (twTitle) twTitle.content = esTitle; if (metaDesc) metaDesc.content = esDesc; if (ogDesc) ogDesc.content = esDesc; if (twDesc) twDesc.content = esDesc; } } catch (e) {} })();