mirego / accent

The first developer-oriented translation tool. True asynchronous flow between translators and your team.
https://www.accent.reviews
BSD 3-Clause "New" or "Revised" License
1.3k stars 97 forks source link

CLI sync doesn't work #415

Closed hansyulian closed 9 months ago

hansyulian commented 9 months ago

accent.json

{
  "apiUrl": "http://localhost:4000",
  "apiKey": "a pseronal api token",
  "project": "f1b26d7e-01ae-473c-9b5a-2e902c853713",
  "files": [
    {
      "format": "json",
      "source": "app/locales/en/*.json",
      "target": "app/locales/%slug%/%document_path%.json"
    }
  ]
}

when i run accent sync i got

Fetch config in accent.json... !
    TypeError: Cannot read properties of null (reading 'project')

accent cli version: 0.16.0 accent version: 1.19.12

hansyulian commented 9 months ago

ok apparently it works if i use api tokens instead of personal access token