Skip to main content

Required config

Optional config fields

  • sourceLanguage
  • targetLanguages
  • timeoutSeconds
  • fileFormat (required when mode is files)

Modes

  • strings: pull and push using Phrase key and translation APIs.
  • files: pull and push using Phrase export/import jobs.

Common issues

  • token not found: export PHRASE_API_TOKEN
  • mode validation error: set mode to strings or files
  • file mode import failure: verify fileFormat matches your project settings

Phrase CLI config

The file workflow commands can also read Phrase’s .phrase.yml format:
Supported commands:
  • hyperlocalise phrase config validate --config .phrase.yml
  • hyperlocalise phrase upload sources --config .phrase.yml
  • hyperlocalise phrase download translations --config .phrase.yml
If --config is omitted, Hyperlocalise checks PHRASEAPP_CONFIG, then .phrase.yml in the current directory, then $HOME/.phrase.yml.