Skip to content

Commit

Permalink
fix: [l10n] Fixes issues with extracting strings particularly in elec…
Browse files Browse the repository at this point in the history
…tron package. (microsoft#4973)

* Clean l10ntemp folder after extraction

* Fix patters l10n electron
  • Loading branch information
hatpick authored Nov 24, 2020
1 parent abb716f commit 6097da8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Composer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"l10n:extractJson": "node scripts/l10n-extractJson.js",
"l10n:transform": "node scripts/l10n-transform.js",
"l10n:babel": "babel --config-file ./babel.l10n.config.js --extensions \"ts,.tsx,.jsx,.js\" --out-dir l10ntemp ./packages",
"l10n": "yarn l10n:babel && yarn l10n:extract && yarn l10n:transform packages/server/src/locales/en-US.json && yarn l10n:extractJson packages/server/schemas"
"l10n": "yarn l10n:babel && yarn l10n:extract && yarn l10n:transform packages/server/src/locales/en-US.json && yarn l10n:extractJson packages/server/schemas && rimraf l10ntemp"
},
"husky": {
"hooks": {
Expand Down
2 changes: 1 addition & 1 deletion Composer/packages/electron-server/babel.l10n.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
module.exports = {
presets: ['@babel/react', ['@babel/typescript', { allowNamespaces: true }]],
plugins: ['@babel/plugin-proposal-class-properties'],
ignore: ['**/__tests__', 'node_modules/**', 'build/**/*.js', 'dist/**'],
ignore: ['**/__tests__', '**/node_modules', '**/build', '**/dist', '**/scripts'],
};

0 comments on commit 6097da8

Please sign in to comment.