@mathjazz thank you for your response, indeed I did not succeed with applying your advice
Now my folder structure looks like this:
./languages/pontoon/
├── en
│ └── tms-test.po
├── ru
│ └── tms-test.po
├── templates
│ └── tms-test.pot
└── uk
└── tms-test.po
And my pontoon project settings:
My l10n.toml
file is present at repo root with following contents
[[paths]]
reference = "languages/pontoon/templates/tms-test.pot"
l10n = "languages/pontoon/{locale}/tms-test.po"
locales = [ "en", "ru", "uk"]
But translations still not synced, with similar message:
[DEBUG:pontoon.sync.vcs.models] 2021-08-30 18:23:03,600 Detected resource file languages/pontoon/uk/tms-test.po for en,ru,uk
[ERROR:pontoon.sync.vcs.models] 2021-08-30 18:23:03,613 Skipping resource languages/pontoon/uk/tms-test.po due to ParseError: Failed to parse /app/media/projects/urgn-test/git@github.com:urgn/tms_testing.git/templates/languages/pontoon/uk/tms-test.pot: Syntax error in po file None (line 1)
The second option of configuration I’ve tried:
.
├── languages
│ └── pontoon
│ ├── en
│ │ └── tms-test.po
│ ├── ru
│ │ └── tms-test.po
│ └── uk
│ └── tms-test.po
└── templates
└── tms-test.pot
The project settings are the same, but the configuration file is not used.
Errors remains similar
[DEBUG:pontoon.sync.vcs.models] 2021-08-30 18:42:50,347 Detected resource file languages/pontoon/en/tms-test.po for en,ru,uk
[ERROR:pontoon.sync.vcs.models] 2021-08-30 18:42:50,351 Skipping resource languages/pontoon/en/tms-test.po due to ParseError: Failed to parse /app/media/projects/urgn-test/git@github.com:urgn/tms_testing.git/templates/languages/pontoon/en/tms-test.pot: Syntax error in po file None (line 1)
And
DEBUG:pontoon.sync.vcs.models] 2021-08-30 18:42:50,398 Detected resource file templates/tms-test.po for en,ru,uk
[DEBUG:pontoon.sync.vcs.models] 2021-08-30 18:42:50,402 Parsing resource file: /app/media/projects/urgn-test/git@github.com:urgn/tms_testing.git/templates/languages/pontoon/en/templates/tms-test.po
[ERROR:pontoon.sync.vcs.models] 2021-08-30 18:42:50,402 Skipping resource templates/tms-test.po due to ParseError: Failed to parse /app/media/projects/urgn-test/git@github.com:urgn/tms_testing.git/templates/languages/pontoon/en/templates/tms-test.po: Syntax error in po file None (line 1)
Is there any sample working project with similar setup I can use as an example?