From b1243eff99bbfadab8f7deb8d714bbebae13e39a Mon Sep 17 00:00:00 2001 From: mhatvan Date: Tue, 14 Sep 2021 14:12:07 +0200 Subject: chore: add --preserve-whitespace flag for extract script and sync translations --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package.json') diff --git a/package.json b/package.json index c85e73eb8..9add26ec6 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "test": "jest", "test:watch": "jest --watch", "lint": "eslint \"{src,scripts,packages,uidev}/**/*.{js,jsx,ts,tsx}\" --quiet --fix", - "extract": "formatjs extract 'src/**/*.{js,ts}' --out-file temp.json --flatten --id-interpolation-pattern '[sha512:contenthash:base64:6]'", + "extract": "formatjs extract 'src/**/*.{js,ts}' --out-file temp.json --flatten --id-interpolation-pattern '[sha512:contenthash:base64:6]' --preserve-whitespace", "compile": "formatjs compile 'temp.json' --out-file src/i18n/locales/en-US.json", "manage-translations": "npm run extract && npm run compile && rimraf temp.json", "prebuild": "preval-build-info-cli && gulp build", -- cgit v1.2.3-54-g00ecf