Show widget language debug info

This commit is contained in:
rajchales-monito
2026-07-30 08:33:22 +02:00
parent fb33bd3dd6
commit 16329a1681
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -694,7 +694,7 @@ async function widgetConfig(res, url) {
if (!site) return json(res, 404, { error: "site_not_found" });
const language = widgetLanguageForRequest(site, url);
const copy = await widgetCopyForLanguage(site, language);
return json(res, 200, { site: formatSite(getSiteById(site.id)), publicBaseUrl: PUBLIC_BASE_URL, language: copy.language, copy: copy.copy });
return json(res, 200, { site: formatSite(getSiteById(site.id)), publicBaseUrl: PUBLIC_BASE_URL, requestedLanguage: language, language: copy.language, copy: copy.copy });
}
async function visitorPing(req, res) {