Skip to content

Commit

Permalink
Add Slovenian translationa and github workflow for checking it
Browse files Browse the repository at this point in the history
  • Loading branch information
janezd committed Oct 30, 2023
1 parent dde4638 commit 74d2ea4
Show file tree
Hide file tree
Showing 2 changed files with 15,196 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/translations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Check translations

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v1

- name: Install Trubar
run: |
pip install trubar
- name: Collect translations
run: |
cd i18n
trubar collect -s ../Orange new.jaml
trubar merge si.jaml -u Obsolete.jaml new.jaml
trubar missing -o Missing.jaml new.jaml
- name: Check translations
run: |
for fn in Obsolete Missing
do
if [ -f $fn.jaml ]
then
echo "::group::$fn translations"
cat $fn.jaml
echo "::endgroup::"
fi
done
trubar stat si.jaml
if [ -f Missing.jaml ] || [ -f Obsolete.jaml ]
then
exit 1
fi
Loading

0 comments on commit 74d2ea4

Please sign in to comment.