Skip to content

Commit 03a757d

Browse files
authored
fix: include plugins in i18n extraction script (#1802)
Add the additional source `plugins` folder on the `fedx-scripts` extract translations. This can be configured because the frontend-build v14.5.0 now supports additional source folders using the `--include` extra argument.
1 parent d8eda24 commit 03a757d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"scripts": {
1313
"build": "fedx-scripts webpack",
14-
"i18n_extract": "fedx-scripts formatjs extract",
14+
"i18n_extract": "fedx-scripts formatjs extract --include=plugins",
1515
"stylelint": "stylelint \"plugins/**/*.scss\" \"src/**/*.scss\" \"scss/**/*.scss\" --config .stylelintrc.json",
1616
"lint": "npm run stylelint && fedx-scripts eslint --ext .js --ext .jsx --ext .ts --ext .tsx .",
1717
"lint:fix": "npm run stylelint -- --fix && fedx-scripts eslint --fix --ext .js --ext .jsx --ext .ts --ext .tsx .",
@@ -60,7 +60,7 @@
6060
"@openedx-plugins/course-app-teams": "file:plugins/course-apps/teams",
6161
"@openedx-plugins/course-app-wiki": "file:plugins/course-apps/wiki",
6262
"@openedx-plugins/course-app-xpert_unit_summary": "file:plugins/course-apps/xpert_unit_summary",
63-
"@openedx/frontend-build": "^14.3.3",
63+
"@openedx/frontend-build": "^14.5.0",
6464
"@openedx/frontend-plugin-framework": "^1.7.0",
6565
"@openedx/paragon": "^22.16.0",
6666
"@redux-devtools/extension": "^3.3.0",

0 commit comments

Comments
 (0)