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 hindi translation in Volto #6016

Merged
merged 11 commits into from
May 20, 2024
Merged

Add hindi translation in Volto #6016

merged 11 commits into from
May 20, 2024

Conversation

iFlameing
Copy link
Member

Fix #6015

Copy link

netlify bot commented May 13, 2024

Deploy Preview for plone-components canceled.

Name Link
🔨 Latest commit cc4595a
🔍 Latest deploy log https://app.netlify.com/sites/plone-components/deploys/664b48ab86c14f0008a8ec93

Copy link

netlify bot commented May 13, 2024

Deploy Preview for volto failed. Why did it fail? →

Name Link
🔨 Latest commit db23888
🔍 Latest deploy log https://app.netlify.com/sites/volto/deploys/66466ee042b3160008bd268e

@sneridagh
Copy link
Member

@iFlameing needs a final i18n script run.

@davisagli
Copy link
Sponsor Member

@sneridagh @stevepiercy we should probably list the supported languages somewhere in documentation

Copy link
Sponsor Member

@davisagli davisagli left a comment

Choose a reason for hiding this comment

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

Unfortunately I can't review the translation itself. Please invite other Hindi speakers to check it if you want.

@stevepiercy
Copy link
Collaborator

@sneridagh @stevepiercy we should probably list the supported languages somewhere in documentation

Agreed, but what would it look like? Would it be just a list of supported languages, links to the repos where you can see which languages are supported, or a combination of both?

Classic UI and Volto have different supported languages, 69 versus 14 plus 1 from this PR, so we need to make that distinction.

I'd suggest adding content to Internationalization and Localization in the main documentation.

We should also add a step to each process for adding a new language, where the contributor adds it to the listing in the main documentation, too.

Copy link
Member

@nileshgulia1 nileshgulia1 left a comment

Choose a reason for hiding this comment

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

@iFlameing Nice!

@iFlameing
Copy link
Member Author

@stevepiercy @iRohitSingh Will work on the Hindi translation in Plone core during the sprint.

@stevepiercy
Copy link
Collaborator

@stevepiercy @iRohitSingh Will work on the Hindi translation in Plone core during the sprint.

That would be awesome. We have documentation for how to add languages for Plone Classic UI, but I am not certain if it is correct. Please feel free to submit PRs for that as well.

@erral
Copy link
Sponsor Member

erral commented May 14, 2024

@stevepiercy @iRohitSingh Will work on the Hindi translation in Plone core during the sprint.

That would be awesome. We have documentation for how to add languages for Plone Classic UI, but I am not certain if it is correct. Please feel free to submit PRs for that as well.

That docs are OK. I reviewed them some time ago and they are still OK.

I am waiting for the final approval from Weblate to have a Free plan there and include that documentation too.

Anyway, Weblate can be used also to contribute Classic UI translation right now. Not for Volto (there are still some issues).

@sneridagh
Copy link
Member

@stevepiercy
Copy link
Collaborator

@stevepiercy
Copy link
Collaborator

I also noticed that https://6.docs.plone.org/volto/development/i18n.html#broad-overview mentions .json files, and see that they are excluded from the repo in .gitignore. It's not clear what a developer should do with them or if there is some automation that takes care of it for the developer. Can someone enlighten me so I can update the docs accordingly?

@stevepiercy
Copy link
Collaborator

@iFlameing we need to update too: https://github.com/plone/volto/blob/main/packages/volto/src/constants/Languages.js#L7

And that step needs to be added to the overview in https://6.docs.plone.org/volto/development/i18n.html

Done in f767979. I also cleaned up grammar and syntax in the docs.

@stevepiercy
Copy link
Collaborator

@sneridagh @stevepiercy we should probably list the supported languages somewhere in documentation

See PR plone/documentation#1664

@iFlameing
Copy link
Member Author

@sneridagh done from my side.

Copy link
Sponsor Member

@davisagli davisagli left a comment

Choose a reason for hiding this comment

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

@iFlameing There is a failing unit test which needs to be updated with a new snapshot that includes Hindi in the list.

@stevepiercy
Copy link
Collaborator

@iFlameing There is a failing unit test which needs to be updated with a new snapshot that includes Hindi in the list.

@davisagli help! How to do that? It ain't in the Volto docs.

@davisagli
Copy link
Sponsor Member

@stevepiercy There should be a prompt to update the snapshots when the tests are run as documented here: https://6.docs.plone.org/volto/contributing/testing.html#run-jest-tests-on-volto-core

@stevepiercy
Copy link
Collaborator

@stevepiercy There should be a prompt to update the snapshots when the tests are run as documented here: https://6.docs.plone.org/volto/contributing/testing.html#run-jest-tests-on-volto-core

Done in db23888. Thank you!

@sneridagh
Copy link
Member

I also noticed that https://6.docs.plone.org/volto/development/i18n.html#broad-overview mentions .json files, and see that they are excluded from the repo in .gitignore. It's not clear what a developer should do with them or if there is some automation that takes care of it for the developer. Can someone enlighten me so I can update the docs accordingly?

If they are mentioned somewhere, it should be only as a "how does it work". Those JSON files are the .mo equivalent in gettext, you should forget they are there.

@sneridagh sneridagh merged commit bc9417a into main May 20, 2024
70 of 71 checks passed
@sneridagh sneridagh deleted the hindi-translation branch May 20, 2024 13:52
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.

Add Hindi translation in Volto
6 participants