Store current translations in git (#563)
* Store current translations in git * Handle empty strings in translation downloads * Use more consice filtering * Skip empty keys on translation download
This commit is contained in:
committed by
Paulus Schoutsen
parent
d2faeaffe7
commit
90b80880ed
@@ -11,10 +11,6 @@ OUTPUT_DIR=hass_frontend
|
||||
rm -rf $OUTPUT_DIR
|
||||
cp -r public $OUTPUT_DIR
|
||||
|
||||
# Download latest translations
|
||||
echo "Downloading translations from Lokalise"
|
||||
script/translations_download
|
||||
|
||||
# Build frontend
|
||||
BUILD_DEV=0 ./node_modules/.bin/gulp
|
||||
|
||||
|
||||
@@ -11,7 +11,9 @@ cd "$(dirname "$0")/.."
|
||||
if [ ! -f .lokalise_token ] ; then
|
||||
echo "Lokalise API token is required to download the latest set of" \
|
||||
"translations. Please create an account by using the following link:" \
|
||||
"https://lokalise.co/signup/3420425759f6d6d241f598.13594006/all/"
|
||||
"https://lokalise.co/signup/3420425759f6d6d241f598.13594006/all/" \
|
||||
"Place your token in a new file \".lokalise_token\" in the repo" \
|
||||
"root directory."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -29,6 +31,7 @@ docker run \
|
||||
lokalise/lokalise-cli lokalise \
|
||||
--token ${API_TOKEN} \
|
||||
export ${PROJECT_ID} \
|
||||
--export_empty skip \
|
||||
--type json \
|
||||
--dest /opt/dest
|
||||
|
||||
|
||||
@@ -11,7 +11,9 @@ cd "$(dirname "$0")/.."
|
||||
if [ ! -f .lokalise_token ] ; then
|
||||
echo "Lokalise API token is required to download the latest set of" \
|
||||
"translations. Please create an account by using the following link:" \
|
||||
"https://lokalise.co/signup/3420425759f6d6d241f598.13594006/all/"
|
||||
"https://lokalise.co/signup/3420425759f6d6d241f598.13594006/all/" \
|
||||
"Place your token in a new file \".lokalise_token\" in the repo" \
|
||||
"root directory."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user