Skip to content

Commit 738a82f

Browse files
committed
intl-zanata-*.sh script allow inheriting ZANATA_LOCALES
Only set the `ZANATA_LOCALES` envvar in the scripts if it is not already defined. This allows us to interact with zanata using a specific set of locales that may be different from default. For example, to pull just the Spanish translations: > yarn intl:extract > ZANATA_LOCALES=es yarn intl:pull > yarn intl:apply
1 parent 3705acc commit 738a82f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/intl/intl-zanata-pull.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /usr/bin/env bash
22
[[ -e package.json ]] || cd ../..
33

4-
ZANATA_LOCALES=de,es,fr,it,ja,ko,pt-BR,zh-CN,cs,ka
4+
ZANATA_LOCALES=${ZANATA_LOCALES:-de,es,fr,it,ja,ko,pt-BR,zh-CN,cs,ka}
55

66
mvn \
77
at.porscheinformatik.zanata:zanata-maven-plugin:4.7.8:pull \

scripts/intl/intl-zanata-push.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /usr/bin/env bash
22
[[ -e package.json ]] || cd ../..
33

4-
ZANATA_LOCALES=de,es,fr,it,ja,ko,pt-BR,zh-CN,cs
4+
ZANATA_LOCALES=${ZANATA_LOCALES:-de,es,fr,it,ja,ko,pt-BR,zh-CN,cs}
55

66
mvn \
77
at.porscheinformatik.zanata:zanata-maven-plugin:4.7.8:push \

0 commit comments

Comments
 (0)