From b26cd0bb20fc7061683261e3ce6b6e726e33e7c8 Mon Sep 17 00:00:00 2001
From: Eliot Berriot <contact@eliotberriot.com>
Date: Wed, 5 Sep 2018 21:06:53 +0200
Subject: [PATCH] Fixed a bug in i18n extract/compile scripts

---
 front/scripts/i18n-compile.sh | 2 +-
 front/scripts/i18n-extract.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/front/scripts/i18n-compile.sh b/front/scripts/i18n-compile.sh
index 211f8ee8c..955913393 100755
--- a/front/scripts/i18n-compile.sh
+++ b/front/scripts/i18n-compile.sh
@@ -1,3 +1,3 @@
 #!/bin/bash -eux
 locales=$(tail -n +2 src/locales.js | sed -e 's/export default //' | jq '.locales[].code' | xargs echo)
-find locales -name '*.po' | xargs $(yarn bin gettext-extract)/gettext-compile --output src/translations.json
+find locales -name '*.po' | xargs $(yarn bin)/gettext-compile --output src/translations.json
diff --git a/front/scripts/i18n-extract.sh b/front/scripts/i18n-extract.sh
index 149d3262d..1b36d7b1c 100755
--- a/front/scripts/i18n-extract.sh
+++ b/front/scripts/i18n-extract.sh
@@ -7,7 +7,7 @@ touch $locales_dir/app.pot
 
 # Create a main .pot template, then generate .po files for each available language.
 # Extract gettext strings from templates files and create a POT dictionary template.
-$(yarn bin gettext-extract)/gettext-extract --attribute v-translate --quiet --output $locales_dir/app.pot $sources
+$(yarn bin)/gettext-extract --attribute v-translate --quiet --output $locales_dir/app.pot $sources
 xgettext --language=JavaScript --keyword=npgettext:1c,2,3 \
     --from-code=utf-8 --join-existing --no-wrap \
     --package-name=$(node -e "console.log(require('./package.json').name);") \
-- 
GitLab