intlify / intlify/nuxt3

Inputs' dynamic attributes are translated in dev and SSR but not in SSG

Open
#79 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
204
Forks
18
PR merge metrics
No merged PRs in 30d

Description

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.

my component snippet:
```htmle

```

The project repo on GitHub: https://github.com/MuhammadM1998/EGSA

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.