| name | troubleshooting |
| description | 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";
export default defineConfig({
plugins: plugins({
manifest,
htmx: true,
}),
render: (ctx, render) => {
ctx.lang = "pt-BR";
render();
},
});
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">.