From c8c96ad3e00a1ad787793eed9985a98c5a85d9f3 Mon Sep 17 00:00:00 2001 From: Jacob Pierce Date: Mon, 8 May 2023 15:35:05 -0700 Subject: [PATCH] update makemessages & transfercontext scripts to use kolibri-tools CLI --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index bb4d4c7f8e..a7f14e6647 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,9 @@ "lint-frontend:format": "yarn run lint-frontend --write", "lint-frontend:watch": "yarn run lint-frontend --monitor", "lint-frontend:watch:format": "yarn run lint-frontend --monitor --write", - "makemessages": "node ./node_modules/kolibri-tools/lib/i18n/ExtractMessages.js --project=studio", + "makemessages": "kolibri-tools i18n-extract-messages --namespace studio --searchPath contentcuration/contentcuration/frontend", "combineprofiles": "node ./node_modules/kolibri-tools/lib/combineStringProfiles.js ./contentcuration/locale/en/LC_MESSAGES/profiles/", - "transfercontext": "APP_NAME=contentcuration node ./node_modules/kolibri-tools/lib/i18n/SyncContext.js run && yarn lint-all:fix", + "transfercontext": "kolibri-tools i18n-transfer-context --namespace studio --searchPath contentcuration/contentcuration/frontend; yarn lint-all:fix", "build": "webpack --env prod --config webpack.config.js", "postgres": "pg_ctl -D /usr/local/var/postgresql@9.6 start || true", "redis": "redis-server /usr/local/etc/redis.conf || true",