Skip to content

Meta Title Resolution for nested pages #416

@lucie1704

Description

@lucie1704

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions