chore: update Makefile for local translation configurations - #120
chore: update Makefile for local translation configurations#120alenkadev wants to merge 3 commits into
Conversation
|
@alenkadev it looks like you have a lint failure. can you please correct that? |
f281cf5 to
a6949e9
Compare
resolved |
|
@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! |
|
Is this intended for the The PR is pointing to |
arbrandes
left a comment
There was a problem hiding this comment.
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?
|
closing this PR as the PR for these changes needs to be raised against 2.x branch |
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