Skip to content
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

Add Arabic and rtl lang support #2084

Merged
merged 17 commits into from
May 1, 2023
Merged

Add Arabic and rtl lang support #2084

merged 17 commits into from
May 1, 2023

Conversation

imnasnainaec
Copy link
Collaborator

@imnasnainaec imnasnainaec commented Apr 26, 2023

Resolves #2075
Also fixes the third part of #2048


This change is Reviewable

@codecov-commenter
Copy link

codecov-commenter commented Apr 26, 2023

Codecov Report

Patch coverage: 69.04% and project coverage change: +0.03 🎉

Comparison is base (869039b) 48.91% compared to head (6a1c56e) 48.95%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2084      +/-   ##
==========================================
+ Coverage   48.91%   48.95%   +0.03%     
==========================================
  Files         297      297              
  Lines        9460     9479      +19     
  Branches      693      699       +6     
==========================================
+ Hits         4627     4640      +13     
- Misses       4269     4275       +6     
  Partials      564      564              
Flag Coverage Δ
backend 72.03% <ø> (ø)
frontend 32.50% <69.04%> (+0.12%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/components/AppBar/AppBarComponent.tsx 100.00% <ø> (ø)
src/components/AppBar/Logo.tsx 50.00% <ø> (ø)
...ents/DataEntry/DataEntryHeader/DataEntryHeader.tsx 50.00% <ø> (ø)
...components/Statistics/Chart/LineChartComponent.tsx 9.52% <0.00%> (ø)
src/components/Statistics/Statistics.tsx 76.47% <ø> (ø)
src/components/TreeView/TreeViewReducer.ts 71.42% <ø> (ø)
...ation/components/CharacterDetail/CharacterInfo.tsx 0.00% <ø> (ø)
src/goals/DefaultGoal/DisplayProgress.tsx 90.00% <0.00%> (ø)
...pGoal/MergeDupStep/DragDropComponents/DropWord.tsx 0.00% <0.00%> (ø)
...ergeDupGoal/MergeDupStep/MergeDupStepComponent.tsx 0.00% <ø> (ø)
... and 14 more

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@imnasnainaec
Copy link
Collaborator Author

Setting "dir="rtl" makes the footer of the MaterialTable very confusing: material-table-core/core#760

@imnasnainaec imnasnainaec marked this pull request as ready for review April 26, 2023 21:13
Copy link
Contributor

@jasonleenaylor jasonleenaylor left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 7 files at r1, 1 of 8 files at r2, 2 of 34 files at r3.
Reviewable status: 5 of 44 files reviewed, 1 unresolved discussion (waiting on @imnasnainaec)


public/locales/es/translation.json line 221 at r3 (raw file):

      "stepMerge": "Merge Set",
      "of": "de"
    }

Not current with English.

Code quote:

    "progress": {
      "step": "Paso",
      "stepMerge": "Merge Set",
      "of": "de"
    }

Copy link
Collaborator Author

@imnasnainaec imnasnainaec left a comment

Choose a reason for hiding this comment

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

Reviewable status: 5 of 44 files reviewed, 1 unresolved discussion (waiting on @imnasnainaec and @jasonleenaylor)


public/locales/es/translation.json line 221 at r3 (raw file):

Previously, jasonleenaylor (Jason Naylor) wrote…

Not current with English.

Anything not present in another language will default to English, and this will get updated correctly when we cycle everything through Crowdin.

Copy link
Contributor

@jasonleenaylor jasonleenaylor left a comment

Choose a reason for hiding this comment

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

Reviewed 3 of 7 files at r1, 3 of 8 files at r2, 21 of 34 files at r3, 14 of 14 files at r4, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @imnasnainaec)

Copy link
Contributor

@jasonleenaylor jasonleenaylor left a comment

Choose a reason for hiding this comment

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

Reviewed 11 of 11 files at r5, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @imnasnainaec)


src/i18n.ts line 34 at r5 (raw file):

      interpolation: { escapeValue: false },
    },
    setDir

comment here that this is a callback would be good.

Copy link
Contributor

@jasonleenaylor jasonleenaylor left a comment

Choose a reason for hiding this comment

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

Reviewed 4 of 4 files at r6, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @imnasnainaec)

@imnasnainaec imnasnainaec merged commit f144c0b into master May 1, 2023
@imnasnainaec imnasnainaec deleted the rtl branch May 1, 2023 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement formatted translations
3 participants