Skip to content
Snippets Groups Projects
Commit 209be381 authored by François Grand's avatar François Grand
Browse files

fix(e2e): translation checks fail due to multiple imports in jalhyd/src/util/message.ts

refs #538
parent 96b87a9e
No related branches found
No related tags found
2 merge requests!225Release v4.17.0,!189Resolve "Prébarrage : puissance dissipée négative"
Pipeline #140035 passed
......@@ -38,8 +38,14 @@ jm = jm.replace(/\n/g, "");
// split on ","
const messages = jm.split(",");
// remove import on 1st line (wtf) @clodo
messages[0] = messages[0].substring(24);
// remove imports
const firstLine = messages[0].split(";");
while (firstLine.length > 1) {
if (firstLine[0].indexOf("import") !== -1) {
firstLine.splice(0, 1);
}
}
messages[0] = firstLine[firstLine.length - 1];
// read every language file
const localePath = "src/locale";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment