Required config
Optional config fields
sourceLanguagetargetLanguagestimeoutSecondsfileFormat(required whenmodeisfiles)
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
modetostringsorfiles - file mode import failure: verify
fileFormatmatches your project settings
Phrase CLI config
The file workflow commands can also read Phrase’s.phrase.yml format:
hyperlocalise phrase config validate --config .phrase.ymlhyperlocalise phrase upload sources --config .phrase.ymlhyperlocalise phrase download translations --config .phrase.yml
--config is omitted, Hyperlocalise checks PHRASEAPP_CONFIG, then .phrase.yml in the current directory, then $HOME/.phrase.yml.