Skip to content

Commit e3b5293

Browse files
authored
Add workflows to sync locales (#391)
1 parent c9b3c15 commit e3b5293

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

.github/workflows/locales-sync.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "Synchronize locales"
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * 1-5"
6+
workflow_dispatch:
7+
8+
jobs:
9+
sync-with-transifex:
10+
name: "Sync with transifex"
11+
uses: "glpi-project/plugin-translation-workflows/.github/workflows/transifex-sync.yml@v1"
12+
secrets:
13+
github-token: "${{ secrets.LOCALES_SYNC_TOKEN }}"
14+
transifex-token: "${{ secrets.TRANSIFEX_TOKEN }}"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: "Update locales sources"
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
8+
jobs:
9+
push-on-transifex:
10+
name: "Push locales sources"
11+
uses: "glpi-project/plugin-translation-workflows/.github/workflows/transifex-push-sources.yml@v1"
12+
secrets:
13+
transifex-token: "${{ secrets.TRANSIFEX_TOKEN }}"

.tx/config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[main]
22
host = https://www.transifex.com
33

4-
[o:teclib:p:glpi-plugin-order:r:order-pot]
4+
[o:teclib:p:glpi-project-plugin-order:r:order-pot]
55
file_filter = locales/<lang>.po
66
source_file = locales/order.pot
77
source_lang = en

0 commit comments

Comments
 (0)