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

Intl patch3 #3992

Merged
merged 24 commits into from
Sep 14, 2023
Merged

Intl patch3 #3992

merged 24 commits into from
Sep 14, 2023

Conversation

drafish
Copy link
Contributor

@drafish drafish commented Aug 15, 2023

changes

  1. patch a lot of en locale messages
  2. add index.js for Spanish and French
  3. add some new locale json files

This time, I didn't submit zh locale messages. I think it will be better if I upload zh locale json files on crowdin. And @ryestew will submit a pr from crowdin to update the non-english locale json.

Since crowdin is already handling the non-english languages, there is no need to maintain them manually. Because everything you update on non-english languages will be overwritten by crowdin.

For example, here is a pr that submitted by @LianaHus . I see you updated 4 languages. But actually you only need to update english. Other three will be updated by crowdin. And I think it will be better if non-english languages only be updated by crowdin, because it wouldn't cause any conflicts when merging crowdin pr.

And some times you will add some new strings, you probably will wonder if you need to add those new strings to non-english languages. The answer is still no. Because non-english languages will be filled in the gaps with english. Check the code below.
https://github.com/ethereum/remix-project/blob/master/apps/remix-ide/src/app/tabs/locales/zh/index.js#L15-L17

There is a situation that you need to notice. When you add a new json file, you need to add it in other languages and import it in index.js. Otherwise, the translations wouldn't work.

That's about everything. If you guys have any questions, feel free to ask me anytime.

The intl feature is coming from Remix CC, and we will provide long term support for it, and any other features that we probably will contribute in the future.

@netlify
Copy link

netlify bot commented Aug 15, 2023

👷 Deploy request for remixproject pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 35d4f7f

Copy link
Collaborator

@ryestew ryestew left a comment

Choose a reason for hiding this comment

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

This PR looks OK. It is such a large PR it needs another reviewer.

Copy link
Collaborator

@ryestew ryestew left a comment

Choose a reason for hiding this comment

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

I reviewed with @joeizang

@Aniket-Engg Aniket-Engg merged commit 557d21f into ethereum:master Sep 14, 2023
1 check passed
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.

4 participants