-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add experimental atlas to pull_translations #1093
feat: add experimental atlas to pull_translations #1093
Conversation
Thanks for the pull request, @OmarIthawi! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
997bb03
to
66e1084
Compare
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #1093 +/- ##
=======================================
Coverage 87.03% 87.03%
=======================================
Files 253 253
Lines 4381 4381
Branches 1108 1108
=======================================
Hits 3813 3813
Misses 549 549
Partials 19 19
☔ View full report in Codecov by Sentry. |
Hi, @edx/engage-squad I'd love a quick sanity check before I invest more time in shaping up this work, remove temp. references and add documentation. cc: @mphilbrick211, it turns out I can't tag the right team. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking really great! Definitely a good pattern when combined with openedx/frontend-platform#463!
Just one little note as a reminder so we don't forget and merge this while pointing to the Zeit Labs fork, but other than that this is looking good to go!
5c00ba7
to
f5b8924
Compare
@OmarIthawi sorry for the late reply. @openedx/engage-squad - could someone please take a look at this? Thanks! |
589f071
to
468d396
Compare
468d396
to
d27b9ce
Compare
Hey @OmarIthawi, just checking in to see if @brian-smith-tcril's feedback addressed your need for a quick sanity check? Or are you still looking for additional input from the engage-squad before continuing? |
@itsjeyd I've got the initial review. Thanks for checking. I'm now blocked by other PRs which brings the required |
All the linked PRs are merged now! |
Thanks @brian-smith-tcril. We still need to tag new releases on both the header and footer on GitHub so they're published on npm. |
13fbdfd
to
e252883
Compare
9d0401c
to
620d847
Compare
Releases are out for header and footer now! |
Thanks! It turns out we have another blocker. I've updated the PR description: https://github.com/openedx/frontend-lib-special-exams is stuck on |
1403d97
to
c0b8ca6
Compare
@mphilbrick211 this is now ready for review. |
@itsjeyd FYI! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Once conflicts are resolved let's
Thanks for the ping @mphilbrick211 :) |
This is an experimental off-by-defualt feature for moving the translation files ouside the repos. Run `OPENEDX_ATLAS_PULL=true make translations` to use atlas to pull translations instead of transifex.
c0b8ca6
to
d147125
Compare
Conflicts are fixed again. Thanks all for the reviews and help!! |
@itsjeyd conflicts are resolved on this one! |
@OmarIthawi @brian-smith-tcril Thanks for the update! Marking this as ready for merge. @brian-smith-tcril If you have permission to merge (?) please go ahead, otherwise we can ping the Aurora team; let me know. |
@OmarIthawi 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
This is an experimental off-by-defualt feature for moving the translation files ouside the repos. Run `OPENEDX_ATLAS_PULL=true make translations` to use atlas to pull translations instead of transifex. Refs: FC-12 OEP-58
This is an experimental off-by-defualt feature for moving the translation files ouside the repos. Run `OPENEDX_ATLAS_PULL=true make translations` to use atlas to pull translations instead of transifex. Refs: FC-12 OEP-58
Description
This is an experimental off-by-defualt feature for moving the translation files ouside the repos.
Run
OPENEDX_ATLAS_PULL=true make translations
to useatlas
to pull translations instead oftransifex
.Changes
src/i18n/index.js
pull_translations
implementation viaatlas
i18n-imports.js
script from feat: new intl-imports script for atlas src/i18n/index.js generation frontend-platform#463Reviewers
intl-imports.js
script:[email protected]
in exams library (blocker): feat: upgraded to node v18, added .nvmrc and updated workflows frontend-lib-special-exams#89Screenshot
Sample expected outcome
The file tree after running the new
pull_translations
will look like the following:All messages will be pulled fresh, without depending on any messages from the MFE or its depedencies.
Sample package
index.js
fileFor each directory/package an
index.js
file will be generated if and only if there are messages in the files:Sample MFE
src/i18n/index.js
fileA new
index.js
is going to be generated containing only downloaded languages.References
This pull request is part of the FC-0012 project which is sparked by the Translation Infrastructure update OEP-58.
Check the links above for full information about the overall project.
Internalization is being rearchitected in Open edX Python, XBlock, Micro-frontend, and other projects. There are a number of immediately visible changes:
.json
,.po
or.mo
files will be committed into the repos.make extract_translations
in all repositoriesBreaking Changes
One of the primary goals of the project is to avoid breaking changes. If you noticed any suspicious code, please raise your concern. But before that, please know the strategy we're following to avoid breaking changes