openedx / frontend-app-discussions

A React-based micro frontend for the Open edX discussion forums.
GNU Affero General Public License v3.0
6 stars 62 forks source link

fix: Persian language #555

Closed CodeWithEmad closed 10 months ago

CodeWithEmad commented 1 year ago

This will fix the Persian language code issue(fa-ir is the code in all of the other MFEs) also fixed some typos in the code.

openedx-webhooks commented 1 year ago

Thanks for the pull request, @CodeWithEmad! 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.

CodeWithEmad commented 1 year ago

Also, I noticed that you're using the es-AR and es-ES inside i18n/index.js https://github.com/openedx/frontend-app-discussions/blob/ea235cf6ca707521adbc90938f928c7816a8029d/src/i18n/index.js#L41-L42 but I believe in other MFEs (even here of fr-fr or fr-cs) the language code should be all in lowercase.

Is there a specific reason for the issue, or should I address it in my PR?

itsjeyd commented 1 year ago

Hey @asadazam93, would you be able to help @CodeWithEmad with the question that he raised above?

@CodeWithEmad Thanks for the changes!

codecov[bot] commented 1 year ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (3a6a783) 92.32% compared to head (1c64979) 92.32%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #555 +/- ## ======================================= Coverage 92.32% 92.32% ======================================= Files 169 169 Lines 3451 3451 Branches 899 899 ======================================= Hits 3186 3186 Misses 244 244 Partials 21 21 ``` | [Files](https://app.codecov.io/gh/openedx/frontend-app-discussions/pull/555?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openedx) | Coverage Δ | | |---|---|---| | [src/discussions/common/ActionsDropdown.jsx](https://app.codecov.io/gh/openedx/frontend-app-discussions/pull/555?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openedx#diff-c3JjL2Rpc2N1c3Npb25zL2NvbW1vbi9BY3Rpb25zRHJvcGRvd24uanN4) | `87.50% <100.00%> (ø)` | | | [src/discussions/common/Confirmation.jsx](https://app.codecov.io/gh/openedx/frontend-app-discussions/pull/555?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openedx#diff-c3JjL2Rpc2N1c3Npb25zL2NvbW1vbi9Db25maXJtYXRpb24uanN4) | `100.00% <ø> (ø)` | | | [src/discussions/common/HoverCard.jsx](https://app.codecov.io/gh/openedx/frontend-app-discussions/pull/555?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openedx#diff-c3JjL2Rpc2N1c3Npb25zL2NvbW1vbi9Ib3ZlckNhcmQuanN4) | `86.20% <100.00%> (ø)` | | | [src/discussions/data/selectors.js](https://app.codecov.io/gh/openedx/frontend-app-discussions/pull/555?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openedx#diff-c3JjL2Rpc2N1c3Npb25zL2RhdGEvc2VsZWN0b3JzLmpz) | `100.00% <100.00%> (ø)` | | | [...discussions/discussions-home/DiscussionSidebar.jsx](https://app.codecov.io/gh/openedx/frontend-app-discussions/pull/555?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openedx#diff-c3JjL2Rpc2N1c3Npb25zL2Rpc2N1c3Npb25zLWhvbWUvRGlzY3Vzc2lvblNpZGViYXIuanN4) | `89.18% <100.00%> (ø)` | | | [...c/discussions/discussions-home/DiscussionsHome.jsx](https://app.codecov.io/gh/openedx/frontend-app-discussions/pull/555?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openedx#diff-c3JjL2Rpc2N1c3Npb25zL2Rpc2N1c3Npb25zLWhvbWUvRGlzY3Vzc2lvbnNIb21lLmpzeA==) | `95.74% <ø> (ø)` | | | [.../discussions-home/DiscussionsRestrictionBanner.jsx](https://app.codecov.io/gh/openedx/frontend-app-discussions/pull/555?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openedx#diff-c3JjL2Rpc2N1c3Npb25zL2Rpc2N1c3Npb25zLWhvbWUvRGlzY3Vzc2lvbnNSZXN0cmljdGlvbkJhbm5lci5qc3g=) | `88.88% <100.00%> (ø)` | | | [...c/discussions/discussions-home/FeedbackWrapper.jsx](https://app.codecov.io/gh/openedx/frontend-app-discussions/pull/555?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openedx#diff-c3JjL2Rpc2N1c3Npb25zL2Rpc2N1c3Npb25zLWhvbWUvRmVlZGJhY2tXcmFwcGVyLmpzeA==) | `92.85% <100.00%> (ø)` | | | [src/discussions/learners/LearnersView.jsx](https://app.codecov.io/gh/openedx/frontend-app-discussions/pull/555?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openedx#diff-c3JjL2Rpc2N1c3Npb25zL2xlYXJuZXJzL0xlYXJuZXJzVmlldy5qc3g=) | `97.43% <100.00%> (ø)` | | | [...iscussions/post-comments/comments/CommentsView.jsx](https://app.codecov.io/gh/openedx/frontend-app-discussions/pull/555?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openedx#diff-c3JjL2Rpc2N1c3Npb25zL3Bvc3QtY29tbWVudHMvY29tbWVudHMvQ29tbWVudHNWaWV3LmpzeA==) | `91.42% <100.00%> (ø)` | | | ... and [9 more](https://app.codecov.io/gh/openedx/frontend-app-discussions/pull/555?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openedx) | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

e0d commented 1 year ago

Hi @CodeWithEmad , I notice there are some commit-lint failures. Please note that we use conventional commits across Open edX projects. You can read about the details here. Can you please amend your commit messages to follow our standard?

CodeWithEmad commented 1 year ago

Sure. I totally forgot about the commit lint. have a look now :)

CodeWithEmad commented 1 year ago

@e0d since no one answered my question about the UPPER case codes for es-ES and es-AR, I refactor them as well to es-es and es-ar and rebased with master.

itsjeyd commented 1 year ago

Hey @arbrandes, has this PR made it into your review queue? If you don't think you'll get to this PR anytime soon, I can try and find someone else to review; just let me know.

mphilbrick211 commented 12 months ago

Hi @arbrandes! Just following up on this to see if you're able to review (and if you could please re-enable the checks to run)? Thanks!

CC: @itsjeyd

itsjeyd commented 11 months ago

@arbrandes Since your review queue is quite long (😅), would it help if we asked someone from the maintainer team (Infinity) to review this PR?

CC @mphilbrick211

CodeWithEmad commented 11 months ago

@saadyousafarbi take a look.

e0d commented 11 months ago

I notice there are some commit-lint failures. Please note that we use conventional commits across Open edX projects. You can read about the details here. Can you please amend your commit messages to follow our standard?

CodeWithEmad commented 11 months ago

Oops. I forgot that, again! It's okay now, @e0d.

mphilbrick211 commented 11 months ago

Hi @arbrandes! When you get a chance, could you please re-enable the checks to run on this PR before review? Thanks!

itsjeyd commented 10 months ago

@mphilbrick211 @arbrandes Since @saadyousafarbi already reviewed and approved these changes I didn't think we'd need another round of review.

The build is green, too, so it looks like this PR is pretty much ready for merge.

itsjeyd commented 10 months ago

Hey @CodeWithEmad, could you please rebase your changes?

@saadyousafarbi Once that's done would you be able to merge this PR?

openedx-webhooks commented 10 months ago

@CodeWithEmad 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future.