Skip to content

Add Slovenian translations and a workflow for checking them #17

Add Slovenian translations and a workflow for checking them

Add Slovenian translations and a workflow for checking them #17

Workflow file for this run

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