Skip to content

Commit

Permalink
feat: Add ecommerce to the translation pipeline
Browse files Browse the repository at this point in the history
Refs: FC-0012 OEP-58
  • Loading branch information
shadinaif committed Nov 14, 2023
1 parent 3e9ec73 commit c02767a
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions .github/workflows/extract-translation-source-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,28 @@ jobs:
const selectedRepo = ${{ toJSON(github.event.inputs.repo) }} ?? '';
const allPythonRepos = [
'AudioXBlock',
'completion',
'course-discovery',
'credentials',
'credentials-themes',
'DoneXBlock',
'edx-ace',
'edx-bulk-grades',
'edx-ora2',
'edx-proctoring',
'FeedbackXBlock',
'RecommenderXBlock',
'xblock-drag-and-drop-v2',
'xblock-free-text-response',
'xblock-google-drive',
'xblock-image-explorer',
'xblock-image-modal',
'xblock-lti-consumer',
'xblock-qualtrics-survey',
'xblock-sql-grader',
'xblock-submit-and-compare',
// 'AudioXBlock',
// 'completion',
// 'course-discovery',
// 'credentials',
// 'credentials-themes',
// 'DoneXBlock',
'ecommerce',
// 'edx-ace',
// 'edx-bulk-grades',
// 'edx-ora2',
// 'edx-proctoring',
// 'FeedbackXBlock',
// 'RecommenderXBlock',
// 'xblock-drag-and-drop-v2',
// 'xblock-free-text-response',
// 'xblock-google-drive',
// 'xblock-image-explorer',
// 'xblock-image-modal',
// 'xblock-lti-consumer',
// 'xblock-qualtrics-survey',
// 'xblock-sql-grader',
// 'xblock-submit-and-compare',
];
const allJavascriptRepos = [
Expand Down Expand Up @@ -209,7 +210,8 @@ jobs:
cd translations/${{ matrix.repo }}
# finds the directory containing the english locale usually located in
# */*/conf/locale/en
EN_DIR=$(find . -type d -regex ".+conf\/locale\/en$")
# but also exclude any hidden directories that might exist for some reason
EN_DIR=$(find . -type d -not -path '*/.*' -regex ".+conf\/locale\/en$")
# If the directory is not found, exit with an error. This can happen if we add a repository that doesn't
# comply with OEP-58, or it still doesn't have any translations yet
if [ -z "$EN_DIR" ]; then
Expand Down

0 comments on commit c02767a

Please sign in to comment.