Skip to content

Commit 986b51c

Browse files
committed
Translation loading issue. Closes #245.
1 parent 329167e commit 986b51c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ echo "Build blocks..."
4747
npm run build-blocks
4848

4949
echo "Internationalization..."
50+
51+
# download wp-cli if not already downloaded
52+
if [ ! -f wp-cli.phar ]; then
53+
echo "Downloading WP-CLI..."
54+
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
55+
chmod +x wp-cli.phar
56+
fi
57+
5058
cp -r ./i18n ./build/i18n
5159
php ./wp-cli.phar i18n make-json ./build/i18n
5260
php ./wp-cli.phar i18n make-mo ./build/i18n

0 commit comments

Comments
 (0)