Skip to content

chore: update Makefile for local translation configurations - #120

Closed
alenkadev wants to merge 3 commits into
openedx:mainfrom
alenkadev:alenka/make-file-changes-for-local-translations
Closed

chore: update Makefile for local translation configurations#120
alenkadev wants to merge 3 commits into
openedx:mainfrom
alenkadev:alenka/make-file-changes-for-local-translations

Conversation

@alenkadev

@alenkadev alenkadev commented Jul 8, 2026

Copy link
Copy Markdown

Title: Switch to using local translations (AU-2765)

Description:
Declares ATLAS_EXTRA_SOURCES, ATLAS_EXTRA_INTL_IMPORTS, and ATLAS_OPTIONS as overridable Makefile variables (?=, default empty).
Appends $(ATLAS_EXTRA_SOURCES) to the atlas pull command in pull_translations, so extra translations/: entries can be pulled alongside the existing ones.
Appends (ATLAS_EXTRA_INTL_IMPORTS) to the $(intl_imports) call, so any extra sources pulled above are also registered/imported

jira-link : https://2u-internal.atlassian.net/browse/LP-330

Comment thread Makefile Outdated
@jristau1984

Copy link
Copy Markdown

@alenkadev it looks like you have a lint failure. can you please correct that?

@alenkadev
alenkadev force-pushed the alenka/make-file-changes-for-local-translations branch from f281cf5 to a6949e9 Compare July 23, 2026 10:43
@alenkadev

Copy link
Copy Markdown
Author

@alenkadev it looks like you have a lint failure. can you please correct that?

resolved

@alenkadev
alenkadev requested a review from arbrandes July 24, 2026 07:26
@alenkadev
alenkadev requested a review from awais-ansari July 28, 2026 03:24
@jristau1984

Copy link
Copy Markdown

@arbrandes any chance you can help us understand the timeline for this review? We have an internal ticket tied to this, and I would like to set expectations to the stakeholders watching that ticket. Thanks!

@brian-smith-tcril

Copy link
Copy Markdown
Contributor

Is this intended for the frontend-base "app" version of this or the frontend-build/frontend-platform "plugin" version of this?

The PR is pointing to main which is now the frontend-base version, and these changes don't make sense there at all. I'm not 100% sure about them on the build/platform side of things either but it would be very helpful context for review.

@arbrandes arbrandes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't make sense on the main branch.

ATLAS_EXTRA_INTL_IMPORTS has no reader. frontend-base's translations:pull takes external input only from --atlas-options= on argv, so exporting the variable into the environment does nothing.

ATLAS_EXTRA_SOURCES is now the site's concern. A deployment adds translation sources by listing packages under atlasTranslations.dependencies in its site package.json, as frontend-template-site does, where this app is already included. translations:pull resolves that list through node_modules, reads each package's own atlasTranslations.path, and computes the destination itself.

Both variables were dropped for these reasons during the frontend-base i18n conversion, in 59a80e6 on frontend-app-learner-dashboard, for example.

So yes, maybe you meant to target the 2.x branch?

@alenkadev
alenkadev changed the base branch from main to 2.x August 6, 2026 11:58
@alenkadev
alenkadev changed the base branch from 2.x to main August 6, 2026 11:59
@alenkadev

Copy link
Copy Markdown
Author

closing this PR as the PR for these changes needs to be raised against 2.x branch

@alenkadev alenkadev closed this Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants