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

[frontend] Add chinese language option #1266

Merged
merged 4 commits into from
Aug 20, 2024
Merged

Conversation

RomuDeuxfois
Copy link
Member

No description provided.

@RomuDeuxfois RomuDeuxfois marked this pull request as ready for review July 30, 2024 09:04
Copy link

codecov bot commented Jul 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 28.27%. Comparing base (26709d2) to head (f75b947).
Report is 8 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1266      +/-   ##
============================================
+ Coverage     28.03%   28.27%   +0.24%     
- Complexity     1278     1282       +4     
============================================
  Files           516      516              
  Lines         13295    13295              
  Branches        780      780              
============================================
+ Hits           3727     3759      +32     
+ Misses         9405     9373      -32     
  Partials        163      163              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

'Selected payload': 'Charge utile sélectionnée',
Prevention: 'Prévention',
'Start date should be at least today': 'La date de début doit être au moins aujourd\'hui',
'Update the xls mapper': 'Mettre à jour le mapper XLS',
Copy link
Member

Choose a reason for hiding this comment

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

It hurts me to say this but it looks like the french word for "mapper" is "mappeur".

Copy link
Member Author

@RomuDeuxfois RomuDeuxfois Jul 31, 2024

Choose a reason for hiding this comment

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

Aouch good catch

@@ -96,6 +96,9 @@ const UserForm = ({ onSubmit, initialValues }) => {
<MenuItem key="fr" value="fr">
{t('French')}
</MenuItem>
<MenuItem key="zh" value="zh">
{t('Chinese')}
Copy link
Member

Choose a reason for hiding this comment

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

The translation is added on the profile but shouldn't we add it to the list of default languages of the platform too ?

Copy link
Member Author

Choose a reason for hiding this comment

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

I am not sure to understand your point
It's already available in the AppIntlProvider class

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, I missed the BrownserLanguage and the moment configuration

Copy link
Member Author

@RomuDeuxfois RomuDeuxfois Jul 31, 2024

Choose a reason for hiding this comment

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

Fix

@RomuDeuxfois RomuDeuxfois force-pushed the improvment/i18n-chinese branch from 195aeb8 to 3e9d16e Compare August 2, 2024 07:35
@RomuDeuxfois
Copy link
Member Author

@Dimfacion ready for a second round

@Dimfacion
Copy link
Member

Chinese is still missing in the default language dropdown
image

@RomuDeuxfois RomuDeuxfois force-pushed the improvment/i18n-chinese branch from 3e9d16e to f75b947 Compare August 19, 2024 17:28
@RomuDeuxfois
Copy link
Member Author

Chinese is still missing in the default language dropdown image

Forget this one..
I fixed it

@savacano28 savacano28 self-requested a review August 20, 2024 09:27
@RomuDeuxfois RomuDeuxfois merged commit 1a7c5de into master Aug 20, 2024
6 checks passed
@RomuDeuxfois RomuDeuxfois deleted the improvment/i18n-chinese branch August 20, 2024 12:32
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.

3 participants