opral / inlang-message-sdk

0 stars 0 forks source link

`pathpattern` cannot safely reference paths inside a project dir #34

Closed jldec closed 2 months ago

jldec commented 2 months ago

MESDK-70

Context

https://github.com/opral/monorepo/pull/2590/files#discussion_r1567809135

"pathPattern": "./messages/{languageTag}.json", results in a tree like this:

.
├── messages
│   ├── de.json
│   └── en.json
├── project.inlang
│   └── settings.json

That puts the files in a peer directory called messages, not inside the project directory (i think this is from the time when project settings were just a json file.)

Proposal

We'll need to define a new way to specify paths inside the project, without assuming a specific project {name}.inlang in the path