You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This GitHub Actions workflow automatically downloads translation files from POEditor and integrates them into the project.
4
+
5
+
## How It Works
6
+
7
+
The workflow can be triggered in two ways:
8
+
9
+
1.**Manual Trigger**: You can manually run the "POEditor Translation Synchronization" workflow from the "Actions" tab in the GitHub interface.
10
+
2.**Automatic Trigger**: The workflow runs automatically every day at midnight (UTC).
11
+
12
+
## Required Settings
13
+
14
+
For this workflow to function, you need to define the following secrets in your GitHub repository:
15
+
16
+
1.`POEDITOR_API_TOKEN`: Your POEditor API token
17
+
2.`POEDITOR_PROJECT_ID`: Your POEditor project ID
18
+
19
+
You can add these secrets in the "Settings > Secrets and variables > Actions" section of your GitHub repository.
20
+
21
+
## Manual Execution
22
+
23
+
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`).
24
+
25
+
If you don't specify any languages, the default languages `tr` and `en` will be downloaded.
26
+
27
+
## Output
28
+
29
+
When the workflow completes successfully:
30
+
31
+
1. Translation files for the specified languages are downloaded from POEditor
32
+
2. These files are copied to the `src/locales/` directory
33
+
3. Changes are automatically committed and pushed to the main branch
34
+
35
+
## Troubleshooting
36
+
37
+
If the workflow fails:
38
+
39
+
1. Check the GitHub Actions logs
40
+
2. Make sure your POEditor API token and project ID are correct
41
+
3. Ensure that the languages you specified exist in your POEditor project
0 commit comments