File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will extract new translatable strings from files under /app and /tests into a base.pot file,
2
+ # and update the 'en' and 'he' base.po and base.mo files.
3
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
4
+
5
+ name : update-translations
6
+
7
+ on : [push]
8
+
9
+ jobs :
10
+ update-translations :
11
+
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+
16
+ - name : Create base.pot file
17
+ run : pybabel extract --mapping-file=app/babel_mapping.ini app tests -o app/locales/base.pot -c i18n
18
+
19
+ - name : Move to /app directory
20
+ run : cd app
21
+
22
+ - name : Update all language base.po files
23
+ run : pybabel update -i locales/base.pot -d locales -D base
24
+
25
+ - name : Update all .mo files
26
+ run : pybabel compile -d locales -D base
27
+
28
+ # https://github.com/stefanzweifel/git-auto-commit-action
29
+ - name : Commit changes
30
+ uses : stefanzweifel/git-auto-commit-action@v4
31
+ with :
32
+ commit_message : Apply automatic translateable string changes
You can’t perform that action at this time.
0 commit comments