Skip to content

Commit

Permalink
Add workflows to sync locales (#71)
Browse files Browse the repository at this point in the history
* Add workflows to sync locales

* tx
  • Loading branch information
Rom1-B authored Sep 12, 2024
1 parent 92ec5d7 commit 34a1812
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/locales-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Synchronize locales"

on:
schedule:
- cron: "0 0 * * 1-5"
workflow_dispatch:

jobs:
sync-with-transifex:
name: "Sync with transifex"
uses: "glpi-project/plugin-translation-workflows/.github/workflows/transifex-sync.yml@v1"
secrets:
github-token: "${{ secrets.LOCALES_SYNC_TOKEN }}"
transifex-token: "${{ secrets.TRANSIFEX_TOKEN }}"
13 changes: 13 additions & 0 deletions .github/workflows/locales-update-source.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: "Update locales sources"

on:
push:
branches:
- "main"

jobs:
push-on-transifex:
name: "Push locales sources"
uses: "glpi-project/plugin-translation-workflows/.github/workflows/transifex-push-sources.yml@v1"
secrets:
transifex-token: "${{ secrets.TRANSIFEX_TOKEN }}"
4 changes: 2 additions & 2 deletions .tx/config
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[main]
host = https://www.transifex.com

[o:teclib:p:glpi-plugin-treeview:r:treeview-pot]
[o:teclib:p:glpi-project-plugin-treeview:r:treeview-pot]
file_filter = locales/<lang>.po
source_file = locales/treeview.pot
source_lang = en_GB
source_lang = en
type = PO

0 comments on commit 34a1812

Please sign in to comment.