intlify / bundle-tools

bundling for intlify i18n tools
MIT License
244 stars 37 forks source link

Meta Title Resolution for nested pages #416

Open lucie1704 opened 1 week ago

lucie1704 commented 1 week ago

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