Skip to content

audienceproject/transifex-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

transifex-sync

Sync resources with transifex

Setup

Environment variables

  • $TRANSIFEX_TOKEN Transifex API token
  • $TRANSIFEX_SYNC_BB_PASSWORD use bitbucket [app password]
  • $TRANSIFEX_SYNC_BB_USER username who created app password
  • $TRANSIFEX_SYNC_BB_BRANCH translation branch, defaults to translation
  • $TRANSIFEX_SYNC_CONFIG configuration 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-form

Usage

Bitbucket 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

About

Sync translations with transifex

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •