mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-01-04 08:40:07 -06:00
1.5 KiB
1.5 KiB
POEditor Translation Synchronization
This GitHub Actions workflow automatically downloads translation files from POEditor and integrates them into the project.
How It Works
The workflow can be triggered in two ways:
- Manual Trigger: You can manually run the "POEditor Translation Synchronization" workflow from the "Actions" tab in the GitHub interface.
- Automatic Trigger: The workflow runs automatically every day at midnight (UTC).
Required Settings
For this workflow to function, you need to define the following secrets in your GitHub repository:
POEDITOR_API_TOKEN: Your POEditor API tokenPOEDITOR_PROJECT_ID: Your POEditor project ID
You can add these secrets in the "Settings > Secrets and variables > Actions" section of your GitHub repository.
Manual Execution
When running the workflow manually, you can specify which languages to download. Languages should be entered as comma-separated values (e.g., tr,gb,es).
If you don't specify any languages, the default languages tr and en will be downloaded.
Output
When the workflow completes successfully:
- Translation files for the specified languages are downloaded from POEditor
- These files are copied to the
src/locales/directory - Changes are automatically committed and pushed to the main branch
Troubleshooting
If the workflow fails:
- Check the GitHub Actions logs
- Make sure your POEditor API token and project ID are correct
- Ensure that the languages you specified exist in your POEditor project