intlify / intlify/bundle-tools

Meta Title Resolution for nested pages

Open
#416 0 comments 0 reactions 0 assignees View on GitHub
status: proposal
Dominant language
TypeScript
Stars
270
Forks
46
PR merge metrics
No merged PRs in 30d

Description

### 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

- [X] Read the [Contributing Guidelines](https://github.com/intlify/bundle-tools/blob/main/.github/contributing.md).
- [X] Read the README
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

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.