Github action failing to export


✔️  Fetching project info
❌ File 'en/LC_MESSAGES/errors.po'
❌ Wrong parameters: 
<key: exportOptions, code: optionsValidationInvalid, message: Invalid options given : [exportPattern][exportPattern - Export pattern can't contain any of the following characters: * ? : " < > |]>
❌ File 'en/LC_MESSAGES/default.po'
❌ Wrong parameters: 
<key: exportOptions, code: optionsValidationInvalid, message: Invalid options given : [exportPattern][exportPattern - Export pattern can't contain any of the following characters: * ? : " < > |]>
❌ Current execution finished with errors

Config file:

"project_id_env": "CROWDIN_PROJECT_ID"
"api_token_env": "CROWDIN_PERSONAL_TOKEN"
"base_path": "."
"project_id": 728395

"preserve_hierarchy": true
 
"files": [
  {
    "source": "en/LC_MESSAGES/*.po",
    "translation": "%locale_with_underscore%/LC_MESSAGES/*.po",
    "escape_special_characters": 1
  }
]

Hello,

The error message says Export pattern can’t contain any of the following characters: * ? : " < > |]>
your export pattern is
“translation”: “%locale_with_underscore%/LC_MESSAGES/*.po”,

Instead of ‘*.po’ please set the ‘%file_name%.po’ and everything should be fine

1 Like