I'm using @intlify/nuxt3 to internationalize a website. I build and deployed the site in ssr: true and target: server (default) and hosted it on vercel and It works good in dev, preview and production.
Now I'm trying to build the app with SSG (ssr: true and target: static) using the following steps:
Added target: static to the nuxt.config.ts
Runned nuxt generate instead of nuxt build
The complete app is translated correctly in dev upon choosing a locale. However, after running nuxt generate and nuxt preview, the app is almost completely translated except of buttons having dynamic placeholder and aria-label atrributes.
I'm using
@intlify/nuxt3
to internationalize a website. I build and deployed the site inssr: true
andtarget: server
(default) and hosted it on vercel and It works good in dev, preview and production.Now I'm trying to build the app with SSG (
ssr: true
andtarget: static
) using the following steps:target: static
to thenuxt.config.ts
nuxt generate
instead ofnuxt build
The complete app is translated correctly in dev upon choosing a locale. However, after running
nuxt generate
andnuxt preview
, the app is almost completely translated except of buttons having dynamicplaceholder
andaria-label
atrributes.my component snippet:
The project repo on GitHub: https://github.com/MuhammadM1998/EGSA