From 5424f75a636b82872e99345fb28b3664420d4901 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Sat, 28 Apr 2018 23:46:05 +0300 Subject: [PATCH] Fix building of docs with latest hugo version (#3856) --- docs/scripts/trans-copy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/scripts/trans-copy b/docs/scripts/trans-copy index 17f197946b..7732192885 100755 --- a/docs/scripts/trans-copy +++ b/docs/scripts/trans-copy @@ -28,6 +28,8 @@ for SOURCE in $(find ${ROOT}/content -type f -iname *.en-us.md); do if [[ ! -f ${DEST} ]]; then echo "Creating fallback for ${DEST#${ROOT}/content/}" cp ${SOURCE} ${DEST} + sed -i.bak "s/en\-us/${LOCALE}/g" ${DEST} + rm ${DEST}.bak fi done done