-
Notifications
You must be signed in to change notification settings - Fork 28
Add i18n and l10n with lingui and babel #772
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
base: main
Are you sure you want to change the base?
Conversation
@goanpeca is attempting to deploy a commit to the xarray Team on Vercel. A member of the Team first needs to authorize it. |
For context, here's some initial discussion around this topic: pydata/xarray#9094 |
The PR has now selected all localizable strings. I added a simple dropdown but I need some help in getting it to actually change the language. |
Hi @andersy005 :) Wanted to know what we could do to help move this forward Thanks! |
thank you for your patience, @goanpeca! very cool to see this addition to the site! let's remove the RSS feed files (atom.xml, rss.json, rss.xml) from git. these aren't meant to be pushed. @jhamman, i no longer have permissions to approve the vercel deployment. do you mind authorizing it so we can check how it looks in staging? after that, we can merge to prod. |
Hi @andersy005 thanks! Will make the changes and ping you :) |
I made the updates @andersy005 ! Thanks 🚀 cc @jhamman 🙈 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Thanks @jhamman , there seems to be some issue but I cannot access the logs, any pointers to debug this? Thanks |
Here are the logs:
|
@jhamman, can we bump the node version in our vercel settings? |
Hi @jhamman and @andersy005, wanted to ask if the vercel configuration could be updated 😄 ? Thanks! 🚀 |
I've bumped our node version to
@andersy005 - do you have bandwidth this week to help unblock here? |
Hello, folks!
This PR adds a language switcher and some logic to deal with multiple languages on the xarray website. Using lingui and babel.
Currently, as part of the Scientific Python grant, we have the site 100% translated into Portuguese (Brazilian) and Spanish. Other languages may follow soon - having the infrastructure set up will hopefully help us recruit new translators 😄
We have been working on the automation process for the sync between crowdin and the websites and can help answer any questions you might have.
This PR is a proof of concept and we are happy to adapt to any specific format or needs you might have here. Feedback is appreciated.
Thanks!
Desktop
Mobile
Moving forward
Ensure all translatable strings are wrapped up in the
t
macro. Yarn build will extract and compile the translations stringsand the rest of the work will happen automatically on https://github.com/Scientific-Python-Translations/xarray-translations and crowding with the volunteer contributors.
For components and pages
For data: convert the object to a function so the
t
macro can work.