File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -164,3 +164,27 @@ jobs:
164164 with :
165165 name : ${{ inputs.version }}-lint-logs
166166 path : logs/*
167+
168+
169+ # Check for zero-width space charcters in translations.
170+ # These are known to come together with (some?) machine translation like Google translate,
171+ # and - as one of the consequences - it may avoid Transifex glossary matching (e.g. variáveis)
172+ zero-width-space :
173+ name : Check for zero-width space characters
174+ runs-on : ubuntu-latest
175+ steps :
176+ - uses : actions/checkout@v4
177+ with :
178+ ref : ${{ inputs.version }}
179+
180+ - name : Make sure the repository is up to date
181+ if : github.event_name != 'pull_request'
182+ run : git pull --rebase
183+
184+ - name : Remove zero-width space characters
185+ run : |
186+ sed -i 's/\xe2\x80\x8b//g' *.po **/*.po
187+
188+ - name : Show difference (error if there is any)
189+ run : |
190+ git diff --exit-code --color-words
You can’t perform that action at this time.
0 commit comments