Sync resources with transifex
Environment variables
$TRANSIFEX_TOKENTransifex API token$TRANSIFEX_SYNC_BB_PASSWORDuse bitbucket [app password]$TRANSIFEX_SYNC_BB_USERusername who created app password$TRANSIFEX_SYNC_BB_BRANCHtranslation branch, defaults totranslation$TRANSIFEX_SYNC_CONFIGconfiguration file, defaults to.transifex-sync.yaml.
Configuration example:
targets:
- # 'source' strings file location
source: packages/login-form/messages.yaml
# translation file template
translation: packages/login-form/messages.{code}.yaml
# location of transifex resource
location:
project: myproject
resource: mywebsite
# transifex JSONKEYVALUE resource key
key: login-formBitbucket pipelines configuration example:
pipelines:
custom:
transifex-sync:
- step:
image: audienceproject/transifex-sync
script:
- transifex-sync
branches:
translation:
- step:
image: audienceproject/transifex-sync
script:
- transifex-sync