# How to integrate a GitHub repo to a Transifex project?

**URL:** <https://community.transifex.com/t/how-to-integrate-a-github-repo-to-a-transifex-project/318>\
**Category:** Q&A\
**Tags:** integrations\
**Created:** [April 3, 2019, 12:34pm UTC](https://community.transifex.com/t/how-to-integrate-a-github-repo-to-a-transifex-project/318 "2019-04-03T12:34:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lee](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.transifex.com/lee/32/166_2.png) [@Lee](https://community.transifex.com/u/Lee)\
**Post date:** [April 3, 2019, 12:34pm UTC](https://community.transifex.com/t/how-to-integrate-a-github-repo-to-a-transifex-project/318/1 "2019-04-03T12:34:51Z")

</div>

I want to translate a [textbook](https://www.py4e.com/) from English(United States) to Chinese(Simplified) on Transifex. As I know, most project on Transifex is software or website project, but not a book. “All the material for this course (web site, autograders, PowerPoint, textbook, figures for the textbook, assignments, etc) is in [this](https://github.com/csev/py4e) GitHub repository.” But I don’t know how to configure the YAML text that will sync all the documents in the GitHub repo.  
That is the YAML text I tried to submit but no files synced successfully:

```
filters:
  - filter_type: dir
    file_format: PO
    source_file_extension: po
    source_language: en
    source_file_dir: /
    translation_files_expression: /<lang>/
settings:
    language_mapping:
        en: en_US
        zh: zh_CN

```

Who can help me to edit the YAML text correctly? Thanks a lot.

---

<div class="post-metadata">

**Author:** ![anthonydim](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@anthonydim](https://community.transifex.com/u/anthonydim)\
**Post date:** [April 8, 2019, 1:40pm UTC](https://community.transifex.com/t/how-to-integrate-a-github-repo-to-a-transifex-project/318/2 "2019-04-08T13:40:07Z")

</div>

Hello Lee

From the repository I notice the books are in two file formats; HTML and kindle. Transifex supports HTML. This file: [https://github.com/WePosts/py4e-zh\_CN/blob/master/README.md](https://github.com/WePosts/py4e-zh_CN/blob/master/README.md) describes the location of the source files for the ebook.

Therefore, based on the readme file I mentioned above this is what your YAML config should look like:

filters:

- filter\_type: dir  
file\_format: HTML  
source\_file\_extension: html  
source\_language: en  
source\_file\_dir: book3/html/  
translation\_files\_expression: ‘translations/\<lang\>/’

Please re-configure your integration with the above YAML file and let me know how it goes.

Have a nice day!

Anthony
