Commit 329f9124 authored by Florent Poittevin's avatar Florent Poittevin
Browse files

chore: [DLCM-1913] update ngx-translate-extract to last version

parent bf81c4f3
......@@ -2133,52 +2133,70 @@
}
},
"@biesbjerg/ngx-translate-extract": {
"version": "3.0.2",
"resolved": "https://nexus.unige.ch/repository/npm-all/@biesbjerg/ngx-translate-extract/-/ngx-translate-extract-3.0.2.tgz",
"integrity": "sha512-OHPj9QRq3LtLy3z29zj4hGumliIYg7AAwRBU4XGDGBk8CbgzTs2sdEgrVZ3RqKtZP71TFHeqUOdF8jANa94HHw==",
"version": "7.0.4",
"resolved": "https://nexus.unige.ch/repository/npm-all/@biesbjerg/ngx-translate-extract/-/ngx-translate-extract-7.0.4.tgz",
"integrity": "sha512-33hR94Fu26LK7Z+ImW2IdZiHfOcAzyIs1CdkUXg/536z2MqxBYqPoI9Ghsk6RTEfnsGa65wMgOcDXn7Ilhp8ew==",
"dev": true,
"requires": {
"@angular/compiler": "^8.1.3",
"boxen": "^4.1.0",
"colorette": "^1.1.0",
"flat": "git://github.com/lenchvolodymyr/flat.git#ffe77ef",
"gettext-parser": "^4.0.1",
"glob": "^7.1.4",
"mkdirp": "^0.5.1",
"@phenomnomnominal/tsquery": "^4.1.1",
"boxen": "^5.0.1",
"colorette": "^1.2.2",
"flat": "^5.0.2",
"gettext-parser": "^4.0.4",
"glob": "^7.1.6",
"mkdirp": "^1.0.4",
"path": "^0.12.7",
"terminal-link": "^1.3.0",
"typescript": "^3.5.3",
"yargs": "^13.3.0"
"terminal-link": "^2.1.1",
"yargs": "^16.2.0"
},
"dependencies": {
"@angular/compiler": {
"version": "8.2.14",
"resolved": "https://nexus.unige.ch/repository/npm-all/@angular/compiler/-/compiler-8.2.14.tgz",
"integrity": "sha512-ABZO4E7eeFA1QyJ2trDezxeQM5ZFa1dXw1Mpl/+1vuXDKNjJgNyWYwKp/NwRkLmrsuV0yv4UDCDe4kJOGbPKnw==",
"cliui": {
"version": "7.0.4",
"resolved": "https://nexus.unige.ch/repository/npm-all/cliui/-/cliui-7.0.4.tgz",
"integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==",
"dev": true,
"requires": {
"tslib": "^1.9.0"
"string-width": "^4.2.0",
"strip-ansi": "^6.0.0",
"wrap-ansi": "^7.0.0"
}
},
"mkdirp": {
"version": "0.5.5",
"resolved": "https://nexus.unige.ch/repository/npm-all/mkdirp/-/mkdirp-0.5.5.tgz",
"integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==",
"wrap-ansi": {
"version": "7.0.0",
"resolved": "https://nexus.unige.ch/repository/npm-all/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
"integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
"dev": true,
"requires": {
"minimist": "^1.2.5"
"ansi-styles": "^4.0.0",
"string-width": "^4.1.0",
"strip-ansi": "^6.0.0"
}
},
"tslib": {
"version": "1.14.1",
"resolved": "https://nexus.unige.ch/repository/npm-all/tslib/-/tslib-1.14.1.tgz",
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
"y18n": {
"version": "5.0.8",
"resolved": "https://nexus.unige.ch/repository/npm-all/y18n/-/y18n-5.0.8.tgz",
"integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
"dev": true
},
"typescript": {
"version": "3.9.10",
"resolved": "https://nexus.unige.ch/repository/npm-all/typescript/-/typescript-3.9.10.tgz",
"integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==",
"yargs": {
"version": "16.2.0",
"resolved": "https://nexus.unige.ch/repository/npm-all/yargs/-/yargs-16.2.0.tgz",
"integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==",
"dev": true,
"requires": {
"cliui": "^7.0.2",
"escalade": "^3.1.1",
"get-caller-file": "^2.0.5",
"require-directory": "^2.1.1",
"string-width": "^4.2.0",
"y18n": "^5.0.5",
"yargs-parser": "^20.2.2"
}
},
"yargs-parser": {
"version": "20.2.9",
"resolved": "https://nexus.unige.ch/repository/npm-all/yargs-parser/-/yargs-parser-20.2.9.tgz",
"integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==",
"dev": true
}
}
......@@ -2889,6 +2907,15 @@
}
}
},
"@phenomnomnominal/tsquery": {
"version": "4.1.1",
"resolved": "https://nexus.unige.ch/repository/npm-all/@phenomnomnominal/tsquery/-/tsquery-4.1.1.tgz",
"integrity": "sha512-jjMmK1tnZbm1Jq5a7fBliM4gQwjxMU7TFoRNwIyzwlO+eHPRCFv/Nv+H/Gi1jc3WR7QURG8D5d0Tn12YGrUqBQ==",
"dev": true,
"requires": {
"esquery": "^1.0.1"
}
},
"@schematics/angular": {
"version": "12.2.8",
"resolved": "https://nexus.unige.ch/repository/npm-all/@schematics/angular/-/angular-12.2.8.tgz",
......@@ -4300,36 +4327,43 @@
"dev": true
},
"boxen": {
"version": "4.2.0",
"resolved": "https://nexus.unige.ch/repository/npm-all/boxen/-/boxen-4.2.0.tgz",
"integrity": "sha512-eB4uT9RGzg2odpER62bBwSLvUeGC+WbRjjyyFhGsKnc8wp/m0+hQsMUvUe3H2V0D5vw0nBdO1hCJoZo5mKeuIQ==",
"version": "5.1.2",
"resolved": "https://nexus.unige.ch/repository/npm-all/boxen/-/boxen-5.1.2.tgz",
"integrity": "sha512-9gYgQKXx+1nP8mP7CzFyaUARhg7D3n1dF/FnErWmu9l6JvGpNUN278h0aSb+QjoiKSWG+iZ3uHrcqk0qrY9RQQ==",
"dev": true,
"requires": {
"ansi-align": "^3.0.0",
"camelcase": "^5.3.1",
"chalk": "^3.0.0",
"cli-boxes": "^2.2.0",
"string-width": "^4.1.0",
"term-size": "^2.1.0",
"type-fest": "^0.8.1",
"widest-line": "^3.1.0"
"camelcase": "^6.2.0",
"chalk": "^4.1.0",
"cli-boxes": "^2.2.1",
"string-width": "^4.2.2",
"type-fest": "^0.20.2",
"widest-line": "^3.1.0",
"wrap-ansi": "^7.0.0"
},
"dependencies": {
"chalk": {
"version": "3.0.0",
"resolved": "https://nexus.unige.ch/repository/npm-all/chalk/-/chalk-3.0.0.tgz",
"integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
"dev": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
"camelcase": {
"version": "6.2.0",
"resolved": "https://nexus.unige.ch/repository/npm-all/camelcase/-/camelcase-6.2.0.tgz",
"integrity": "sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg==",
"dev": true
},
"type-fest": {
"version": "0.8.1",
"resolved": "https://nexus.unige.ch/repository/npm-all/type-fest/-/type-fest-0.8.1.tgz",
"integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==",
"version": "0.20.2",
"resolved": "https://nexus.unige.ch/repository/npm-all/type-fest/-/type-fest-0.20.2.tgz",
"integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",
"dev": true
},
"wrap-ansi": {
"version": "7.0.0",
"resolved": "https://nexus.unige.ch/repository/npm-all/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
"integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
"dev": true,
"requires": {
"ansi-styles": "^4.0.0",
"string-width": "^4.1.0",
"strip-ansi": "^6.0.0"
}
}
}
},
......@@ -7636,20 +7670,10 @@
}
},
"flat": {
"version": "git://github.com/lenchvolodymyr/flat.git#ffe77efe8c33bc80ffb2f7a465537610dea4f611",
"from": "git://github.com/lenchvolodymyr/flat.git#ffe77ef",
"dev": true,
"requires": {
"is-buffer": "~2.0.3"
},
"dependencies": {
"is-buffer": {
"version": "2.0.5",
"resolved": "https://nexus.unige.ch/repository/npm-all/is-buffer/-/is-buffer-2.0.5.tgz",
"integrity": "sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==",
"dev": true
}
}
"version": "5.0.2",
"resolved": "https://nexus.unige.ch/repository/npm-all/flat/-/flat-5.0.2.tgz",
"integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==",
"dev": true
},
"flat-cache": {
"version": "3.0.4",
......@@ -15596,38 +15620,13 @@
}
},
"supports-hyperlinks": {
"version": "1.0.1",
"resolved": "https://nexus.unige.ch/repository/npm-all/supports-hyperlinks/-/supports-hyperlinks-1.0.1.tgz",
"integrity": "sha512-HHi5kVSefKaJkGYXbDuKbUGRVxqnWGn3J2e39CYcNJEfWciGq2zYtOhXLTlvrOZW1QU7VX67w7fMmWafHX9Pfw==",
"version": "2.2.0",
"resolved": "https://nexus.unige.ch/repository/npm-all/supports-hyperlinks/-/supports-hyperlinks-2.2.0.tgz",
"integrity": "sha512-6sXEzV5+I5j8Bmq9/vUphGRM/RJNT9SCURJLjwfOg51heRtguGWDzcaBlgAzKhQa0EVNpPEKzQuBwZ8S8WaCeQ==",
"dev": true,
"requires": {
"has-flag": "^2.0.0",
"supports-color": "^5.0.0"
},
"dependencies": {
"has-flag": {
"version": "2.0.0",
"resolved": "https://nexus.unige.ch/repository/npm-all/has-flag/-/has-flag-2.0.0.tgz",
"integrity": "sha1-6CB68cx7MNRGzHC3NLXovhj4jVE=",
"dev": true
},
"supports-color": {
"version": "5.5.0",
"resolved": "https://nexus.unige.ch/repository/npm-all/supports-color/-/supports-color-5.5.0.tgz",
"integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
"dev": true,
"requires": {
"has-flag": "^3.0.0"
},
"dependencies": {
"has-flag": {
"version": "3.0.0",
"resolved": "https://nexus.unige.ch/repository/npm-all/has-flag/-/has-flag-3.0.0.tgz",
"integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=",
"dev": true
}
}
}
"has-flag": "^4.0.0",
"supports-color": "^7.0.0"
}
},
"svgo": {
......@@ -15734,28 +15733,14 @@
"yallist": "^4.0.0"
}
},
"term-size": {
"version": "2.2.1",
"resolved": "https://nexus.unige.ch/repository/npm-all/term-size/-/term-size-2.2.1.tgz",
"integrity": "sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==",
"dev": true
},
"terminal-link": {
"version": "1.3.0",
"resolved": "https://nexus.unige.ch/repository/npm-all/terminal-link/-/terminal-link-1.3.0.tgz",
"integrity": "sha512-nFaWG/gs3brGi3opgWU2+dyFGbQ7tueSRYOBOD8URdDXCbAGqDEZzuskCc+okCClYcJFDPwn8e2mbv4FqAnWFA==",
"version": "2.1.1",
"resolved": "https://nexus.unige.ch/repository/npm-all/terminal-link/-/terminal-link-2.1.1.tgz",
"integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==",
"dev": true,
"requires": {
"ansi-escapes": "^3.2.0",
"supports-hyperlinks": "^1.0.1"
},
"dependencies": {
"ansi-escapes": {
"version": "3.2.0",
"resolved": "https://nexus.unige.ch/repository/npm-all/ansi-escapes/-/ansi-escapes-3.2.0.tgz",
"integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==",
"dev": true
}
"ansi-escapes": "^4.2.1",
"supports-hyperlinks": "^2.0.0"
}
},
"terser": {
......
......@@ -30,7 +30,7 @@
"lint:fix": "ng lint --fix",
"e2e": "ng e2e",
"sonar": "sonar-scanner",
"extract-translations": "ngx-translate-extract --input ./src --output ./src/assets/i18n/fr.json ./src/assets/i18n/en.json ./src/assets/i18n/de.json --clean --sort --format namespaced-json --key-as-default-value=true --format-indentation \" \" --marker MARK_AS_TRANSLATABLE",
"extract-translations": "ngx-translate-extract --input ./src --output ./src/assets/i18n/fr.json ./src/assets/i18n/en.json ./src/assets/i18n/de.json --clean --sort --format namespaced-json --key-as-default-value=true --format-indentation \" \"",
"extract-translations:csv-to-json": "ngx-translate-extract-csv -r -i ./src/assets/i18n/translate.csv -o ./src/assets/i18n -s ;",
"extract-translations:json-to-csv": "ngx-translate-extract-csv -l fr,en,de -i ./src/assets/i18n -o ./src/assets/i18n/translate.csv -s ;",
"generate-version": "ts-node --project tsconfig-ts-node.json git.version.ts",
......@@ -107,7 +107,7 @@
"@angular/cli": "12.2.7",
"@angular/compiler-cli": "12.2.7",
"@angular/language-service": "12.2.7",
"@biesbjerg/ngx-translate-extract": "3.0.2",
"@biesbjerg/ngx-translate-extract": "7.0.4",
"@cypress/webpack-preprocessor": "5.9.1",
"@ngxs/devtools-plugin": "3.7.2",
"@openapitools/openapi-generator-cli": "2.4.4",
......
diff --git a/node_modules/@biesbjerg/ngx-translate-extract/dist/parsers/marker.parser.js b/node_modules/@biesbjerg/ngx-translate-extract/dist/parsers/marker.parser.js
index a17e5f3..6eb48bf 100644
--- a/node_modules/@biesbjerg/ngx-translate-extract/dist/parsers/marker.parser.js
+++ b/node_modules/@biesbjerg/ngx-translate-extract/dist/parsers/marker.parser.js
@@ -3,8 +3,8 @@ exports.MarkerParser = void 0;
const tsquery_1 = require("@phenomnomnominal/tsquery");
const translation_collection_1 = require("../utils/translation.collection");
const ast_helpers_1 = require("../utils/ast-helpers");
-const MARKER_MODULE_NAME = '@biesbjerg/ngx-translate-extract-marker';
-const MARKER_IMPORT_NAME = 'marker';
+const MARKER_MODULE_NAME = 'solidify-frontend';
+const MARKER_IMPORT_NAME = 'MARK_AS_TRANSLATABLE';
class MarkerParser {
extract(source, filePath) {
const sourceFile = tsquery_1.tsquery.ast(source, filePath);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment