Quick fixes for common, isolated issues in deco.cx storefronts. Use when the user reports a specific symptom that doesn't warrant a full skill. This is a growing knowledge base — add new entries as they're discovered.
Installation
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Quick fixes for common, isolated issues in deco.cx storefronts. Use when the user reports a specific symptom that doesn't warrant a full skill. This is a growing knowledge base — add new entries as they're discovered.
A living collection of quick fixes for one-off problems in deco.cx storefronts. Each entry describes the symptom, root cause, and exact fix.
Entries
HTML lang attribute wrong or missing
Symptom: The page renders with <html lang="en"> (or no lang) but the site is in Portuguese (or another language). Accessibility tools and SEO audits flag the mismatch.
Root cause: In Deno Fresh, the lang attribute on <html> is set via ctx.lang inside the render callback of fresh.config.ts. If the line is absent, Fresh defaults to "en".
Fix: Open fresh.config.ts at the project root and add (or update) the render callback:
import { defineConfig } from"$fresh/server.ts";
import { plugins } from"deco/plugins/deco.ts";
import manifest from"./manifest.gen.ts";
exportdefaultdefineConfig({
plugins: plugins({
manifest,
htmx: true, // keep whatever options were already here
}),
render: (ctx, render) => {
ctx.lang = "pt-BR"; // ← set to the correct BCP-47 language tagrender();
},
});
Common language tags: pt-BR, pt-PT, en, en-US, es, es-AR.
Verify: After deploying, inspect the page source and confirm <html lang="pt-BR">.