tolgee / tolgee-cli

The Tolgee CLI
MIT License
16 stars 11 forks source link

Even though `delimiter` is set to `null`, sync command creates locales with nested keys. #55

Closed baptisteArno closed 1 year ago

baptisteArno commented 1 year ago

.tolgeerc:

{
  "apiUrl": "<MY_API_URL>",
  "projectId": "1",
  "delimiter": null
}

command:

tolgee sync './apps/builder/src/**/*.ts?(x)' --continue-on-warning --remove-unused

It will create JSON files with nested keys. I'm expecting it to create flat keys.

cyyynthia commented 1 year ago

That's indeed a problem! You can work around this issue by using an empty string instead, it should yield the same result.

baptisteArno commented 1 year ago

Empty string does not seem to do the trick either and the issue also happens with the pull command.

cyyynthia commented 1 year ago

Hmm, that's problematic! I thought it'd do the trick but the way the config load is implemented is bogus and it won't work... Then the only remaining option to get around that is probably just to use the explicit CLI argument 😔

I will have a fix ready for it very soon!

baptisteArno commented 1 year ago

Got it! Thank you :)

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 1.3.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: