Skip to content

Commit

Permalink
Add Transifex to the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Lainow committed Aug 20, 2024
1 parent aec94ba commit 07c5d42
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 3 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/deploy-alpha.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Escalade Deploy Alpha

env:
module_app: app

on:
push:
branches:
- "main"
tags:
- "*"
pull_request:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: main
fetch-depth: 0 #To Fetch All Tags and Branches

- name: Install Dependencies
uses: php-actions/composer@v6
with:
dev: no

##########################################
# Push / Pull translation files #
##########################################
# Push Transifex
- name: Push source file using transifex client
uses: transifex/cli-action@v2
with:
args: push
token: ${{ secrets.TX_TOKEN }}

# Clean Transifex CLI
- name: Clean Transifex CLI
run: rm -fr /tmp/tx

# Pull from Transifex
- name: Pull source file using transifex client
uses: transifex/cli-action@v2
with:
args: pull
token: ${{ secrets.TX_TOKEN }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ dist/
vendor/
.gh_token
*.min.*

.phpunit.result.cache
7 changes: 5 additions & 2 deletions .tx/config
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
[main]
host = https://www.transifex.com
lang_map = es_ES: es-rES, ar_SA: ar-rSA, it_IT: it-rIT, eu_ES: eu-rES, fr_FR: fr-rFR, he_IL: he-rIL, pl_PL: pl-rPL, es_AR: es-rAR, th_TH: th-rTH, pt_BR: pt-rBR, fr: fr, gl_ES: gl-rES, es: es, zh_CN: zh-rCN, ja: ja, ja_JP: ja-rJP, nl_NL: nl-rNL, ko_KR: ko-rKR, cs_CZ: cs-rCZ, hi_IN: hi-rIN, es_MX: es-rMX, en_GB: en-rGB, ca_ES: ca-rES, de_DE: de-rDE, ru_RU: ru-rRU, hu_Hu: hu-rHU, ur_PK: ur-rPK, ar_EG: ar-rEG

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

0 comments on commit 07c5d42

Please sign in to comment.