phrase / phrase-cli

CLI for the Phrase API
https://developers.phrase.com
MIT License
42 stars 6 forks source link

can Phrase cli trigger the auto-fill translation when push #103

Closed MichaelMaIkea closed 1 year ago

MichaelMaIkea commented 2 years ago

when we push the source translation file to the phrase, and then pull, we expect the target files are all updated with auto-filled translated text by phrase. Do you know how to achieve that?

theSoenke commented 2 years ago

Hey @MichaelMaIkea, in the push configuration you can set autotranslate to true. All other upload options can be set like this as well in the params: https://developers.phrase.com/api/#post-/projects/-project_id-/uploads

For example:

  push:
    sources:
      -
        file: ./en.yml
        params:
          locale_id: en
          autotranslate: true

Also autotranslate needs to be enabled in the project settings and then everything should be autotranslated on the next push.

forelabs commented 1 year ago

Closing due to inactivity.