Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Meta Title Resolution for nested pages

Aperta
#416 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
typescript

Direzione di ricerca

Riproduci l'avviso con la route annidata pages/information/legal-mentions.vue e la struttura corrispondente di locales/fr/information/legal-mentions.json descritte nell'issue. Inizia tracciando come viene risolto il percorso meta.title, quindi verifica che la chiave annidata venga risolta senza l'avviso di intlify; useHead() è il comportamento alternativo indicato con cui effettuare il confronto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

status: proposal
Clear and concise description of the problem

Can't find meta title with a nested page like "information/legal-mentions"
I get :
[intlify] Not found '/information/legal-mentions._meta.title' key in 'fr' locale messages.

Suggested solution

Either need to have a way to replicate the nested file architecture on the translation side like

locales/
├── en/
│   ├── home.json
│   ├── about.json
│   └── information/
│       ├── legal-mentions.json
│       └── privacy.json
└── fr/
    ├── home.json
    ├── about.json
    └── information/
        ├── legal-mentions.json
        └── privacy.json

to match the page routing architecture side

pages/
├── home.vue
├── about.vue
└── information/
     ├── legal-mentions.vue
     └── privacy.vue

so that it automatically exports information/legal-mentions keys as information.legal-mentions so that it can automatically target the _meta.title keys in the information/legal-mentions.json

Or else be able to modify the meta title path before resolution to be able to call your said file or even a single file with all meta titles

Alternative

No response

Additional context

I have other ways to update the Page Title like using useHead() with my translation but I want to get read of the intlify warning

Validations
  • Read the Contributing Guidelines.
  • Read the README
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Lingua principale
TypeScript
Stelle
269
Fork
46
Merge medio
3h 58m
PR unite (30g)
56

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di intlify/bundle-tools

Tutte le issue di intlify/bundle-tools

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.