Add check for empty translation source strings (#5044)

* Update sha

* Update check-deps cache

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
Elisabeth Kulzer 2021-01-04 16:05:10 +01:00 committed by GitHub
parent 367534df12
commit 8b8cd1ab4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 4 deletions

View file

@ -255,7 +255,7 @@ jobs:
steps:
# Taken from https://github.com/entur/owasp-orb/blob/master/src/%40orb.yml#L349-L361
- owasp/generate_cache_keys:
cache_key: commmandline-default-cache-key-v6
cache_key: commmandline-default-cache-key-v7
- owasp/restore_owasp_cache
- run:
name: Update OWASP Dependency-Check Database

4
package-lock.json generated
View file

@ -23718,8 +23718,8 @@
}
},
"mmjstool": {
"version": "github:mattermost/mattermost-utilities#519b99a4e51e6c67a0dbd46a6efdff27dc835aaa",
"from": "github:mattermost/mattermost-utilities#519b99a4e51e6c67a0dbd46a6efdff27dc835aaa",
"version": "github:mattermost/mattermost-utilities#3faa6075089a541d8c90ed85114e644c7a23fedf",
"from": "github:mattermost/mattermost-utilities#3faa6075089a541d8c90ed85114e644c7a23fedf",
"dev": true,
"requires": {
"estree-walk": "2.2.0",

View file

@ -141,7 +141,7 @@
"jetifier": "1.6.6",
"jsdom-global": "3.0.2",
"metro-react-native-babel-preset": "0.64.0",
"mmjstool": "github:mattermost/mattermost-utilities#519b99a4e51e6c67a0dbd46a6efdff27dc835aaa",
"mmjstool": "github:mattermost/mattermost-utilities#3faa6075089a541d8c90ed85114e644c7a23fedf",
"mock-async-storage": "2.2.0",
"mock-socket": "9.0.3",
"nock": "13.0.5",

View file

@ -9,6 +9,7 @@ npm run mmjstool -- i18n extract-mobile --webapp-dir tmp/fake-webapp-dir --mobil
diff tmp/en.json assets/base/i18n/en.json
# Address weblate behavior which does not remove whole translation item when translation string is set to empty
npm run mmjstool -- i18n clean-empty --webapp-dir tmp/fake-webapp-dir --mobile-dir . --check
npm run mmjstool -- i18n check-empty-src --webapp-dir tmp/fake-webapp-dir --mobile-dir .
rm -rf tmp