Skip to content

Commit

Permalink
add new build:ci and fix l10ncheck bug (#6284)
Browse files Browse the repository at this point in the history
  • Loading branch information
beyackle authored Mar 6, 2021
1 parent 2b8848b commit ec7f61c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Composer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"scripts": {
"build": "node scripts/begin.js && yarn build:prod && yarn l10n",
"build:prod": "yarn build:dev && yarn build:client && yarn build:server && yarn build:electron",
"build:ci": "yarn l10n:check && yarn build:dev",
"build:dev": "yarn build:libs && yarn build:extensions",
"build:electron": "yarn workspace @bfc/electron-server build && yarn workspace @bfc/electron-server l10n",
"build:libs": "wsrun -ltm -x @bfc/electron-server -x @bfc/client -x @bfc/server -p @botframework-composer/* -p @bfc/* -c build",
Expand Down
3 changes: 2 additions & 1 deletion Composer/scripts/l10nCheck.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ for (;;) {
const json = JSON.parse(data);
for (const [key, val] of Object.entries(json)) {
const msg = val.message;

const src = `${dirent.name} at ${key}:`;
if (/\{.*plural.*}/.exec(msg)) {
// if we're in a "plural" rules section...
Expand All @@ -30,7 +31,7 @@ for (;;) {
errorCount += 1;
}
}
if (/(\p{L}|\s)'(\p{L})/.exec(msg)) {
if (/(\p{L}|\s|\w)'(\p{L}|\w)/.exec(msg)) {
console.log(src, `single quote between letters`);
errorCount += 1;
}
Expand Down

0 comments on commit ec7f61c

Please sign in to comment.