A. Scenario: Check for the following if you don't have existing resources in Transifex and you can't push files from Github/Bitbucket into Transifex?
- file_format:
- Needs to be in all caps and must match the i18N file type designation for your file format as indicated in our documentation: https://docs.transifex.com/formats/introduction. Example: Enter PO and not po for this type of file.
- source_file_dir (filter_type: dir)
-
This is the directory in Github/Bitbucket where you store source files.
-
The directory can’t start with a forward slash. I.e ‘/’. Example:
/directoryname
is invalid. Entry should bedirectoryname
. -
The directory must exist in Github/Bitbucket.
- source_file: (filter_type: file)
- The source file location can’t start with a forward slash, i.e ‘/’. Example:
/locale/fileTest/example.po
is invalid. Entry should belocale/fileTest/example.po
.
B. Scenario: Check for the following if you don't have existing resources in Transifex and you can't pull translations from Transifex into Github/Bitbucket?
- Check for open PR’s (All filter types, option selected to create PR)
-
The integration will create one PR for each resource-language pair. For example if you have a resource called android.xml which you want translated into French, Greek and Spanish a separate PR will be created when French is completely translated/reviewed, a separate one for Greek when it is completely translated/reviewed and so on.
-
If an existing PR remains open in your repository then Transifex will append to the existing PR and it will not create a new one.
-
Place single quotes around your translation_files_expression
E.g:translation_files_expression: 'Translations/<lang>'
-
Use the keyword in the directory name only. (only for filter_type: dir)
· Valid syntax: 'Translations/<lang>/'
.
· Invalid syntax: 'Translations/<lang>.strings'
- Translation file name must equal source file name
This is applied to filter_type:dir. This does not apply to a filter_type: file.
-
If you are committing translations directly to a Branch then you can’t use protected branches for this integration.
-
The user that installed the integration at the organization level (organization settings) needs to be the same user that configures the integration at the project level.
C. Scenario
- You are configuring the integration for the first time and you have existing TX resources you want to sync to your repository. If the integration creates a new resource in Transifex instead of using the existing one, then:
- Make sure that your resource in Transifex has the same name as the resource in Github.
- Note: The integration does not remove the reviewed state of existing resources during the syncing process.