File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22#
33# Copyright (C) 2023 Graz University of Technology.
4+ # Copyright (C) 2026 KTH Royal Institute of Technology.
45#
56# React-Searchkit is free software; you can redistribute it and/or modify it
67# under the terms of the MIT License; see LICENSE file for more details.
@@ -10,5 +11,36 @@ on: workflow_dispatch # manually trigger
1011
1112jobs :
1213 i18n-pull :
13- uses : inveniosoftware/invenio-i18n/.github/workflows/i18n-pull-base.yml@master
14- secrets : inherit
14+ runs-on : ubuntu-latest
15+ env :
16+ NODE-VERSION : 22
17+
18+ steps :
19+ - name : Checkout
20+ uses : actions/checkout@v6
21+
22+ - name : Setup node
23+ uses : actions/setup-node@v6
24+ with :
25+ node-version : ${{ env.NODE-VERSION }}
26+
27+ - name : Install dependencies
28+ run : npm ci
29+
30+ - name : Pull translated files using transifex client
31+ uses : transifex/cli-action@v2
32+ with :
33+ token : ${{ secrets.TRANSIFEX_TOKEN }}
34+ args : pull -a -f
35+
36+ - name : Compile translation catalogs
37+ run : npm run compile_catalog
38+
39+ - name : Create Pull Request
40+ uses : peter-evans/create-pull-request@v6
41+ with :
42+ commit-message : " i18n: pulled translations"
43+ title : " i18n: pulled translations"
44+ body : " i18n: pulled translations"
45+ branch : 101-translations-pull
46+ delete-branch : true
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22#
33# Copyright (C) 2023 Graz University of Technology.
4+ # Copyright (C) 2026 KTH Royal Institute of Technology.
45#
56# React-Searchkit is free software; you can redistribute it and/or modify it
67# under the terms of the MIT License; see LICENSE file for more details.
@@ -10,8 +11,35 @@ on: workflow_dispatch # manually trigger
1011
1112jobs :
1213 i18n-extract :
13- uses : inveniosoftware/invenio-i18n/.github/workflows/i18n-push-base.yml@master
14- with :
15- extract-backend : false
16- frontend-package-path : " ./"
17- secrets : inherit
14+ runs-on : ubuntu-latest
15+ env :
16+ NODE-VERSION : 22
17+
18+ steps :
19+ - name : Checkout
20+ uses : actions/checkout@v6
21+
22+ - name : Setup node
23+ uses : actions/setup-node@v6
24+ with :
25+ node-version : ${{ env.NODE-VERSION }}
26+
27+ - name : Extract frontend messages
28+ run : |
29+ npm ci
30+ npm run extract_messages
31+
32+ - name : Push source file using transifex client
33+ uses : transifex/cli-action@v2
34+ with :
35+ token : ${{ secrets.TRANSIFEX_TOKEN }}
36+ args : push -s
37+
38+ - name : Create Pull Request
39+ uses : peter-evans/create-pull-request@v8
40+ with :
41+ commit-message : " i18n: push translations"
42+ title : " i18n: push translations"
43+ body : " i18n: push translations"
44+ branch : 101-translations-push
45+ delete-branch : true
You can’t perform that action at this time.
0 commit comments