Skip to content

Commit a7c5da6

Browse files
feat: added the ability for instances to use local translations from extra repositories (#752)
Co-authored-by: Adolfo R. Brandes <adolfo@axim.org>
1 parent 09748bc commit a7c5da6

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ transifex_temp = ./temp/babel-plugin-formatjs
1212

1313
NPM_TESTS=build i18n_extract lint test
1414

15+
# Variables for additional translation sources and imports (define in edx-internal if needed)
16+
ATLAS_EXTRA_SOURCES ?=
17+
ATLAS_EXTRA_INTL_IMPORTS ?=
18+
ATLAS_OPTIONS ?=
19+
1520
.PHONY: test
1621
test: $(addprefix test.npm.,$(NPM_TESTS)) ## validate ci suite
1722

@@ -60,9 +65,10 @@ pull_translations:
6065
&& atlas pull $(ATLAS_OPTIONS) \
6166
translations/frontend-base/src/i18n/messages:frontend-base \
6267
translations/paragon/src/i18n/messages:paragon \
63-
translations/frontend-app-learner-dashboard/src/i18n/messages:frontend-app-learner-dashboard
68+
translations/frontend-app-learner-dashboard/src/i18n/messages:frontend-app-learner-dashboard \
69+
$(ATLAS_EXTRA_SOURCES)
6470

65-
$(intl_imports) frontend-base paragon frontend-app-learner-dashboard
71+
$(intl_imports) frontend-base paragon frontend-app-learner-dashboard $(ATLAS_EXTRA_INTL_IMPORTS)
6672

6773
# This target is used by CI.
6874
validate-no-uncommitted-package-lock-changes:

0 commit comments

Comments
 (0)