hi
I'm wrapping me head around this for a solid couple of hours now. I'm following astro-i18next README:
https://github.com/yassinedoghri/astro-i18next#generate
but cannot generate the translated pages. All I get is the site.title string:
<p>{t("site.title")}</p>
renders:
site.title
I have:
astroI18next()added to the integrations array inastro.config.mjsastro-i18next.config.mjslooks like this:
/** @type {import('astro-i18next').AstroI18nextConfig} */
export default {
defaultLocale: "en",
locales: ["en", "pt"],
};
- locales folder inside public with
enandptfolders withtranslation.jsonwith the contents from the README
I ran:
npx astro-i18next generate
and evennpm run buildand served the content directly fromdist
and it doesn't recognize anything. It renders the plain string above. What am I doing wrong?