gitpod-io / retired-gatsby-website

Gitpod website and documentation
https://www.gitpod.io/
MIT License
68 stars 73 forks source link

About the i18n method #96

Closed mouse484 closed 4 years ago

mouse484 commented 5 years ago

When I tried to translate the Gitpod site, I ran into the problem of the i18n method.

This problem arose from the story of creating a Japanese page (https://twitter.com/Esc_mouse_484/status/1120527320446590978) , but I think Gitpod is a useful tool that people in more languages ​​should use.

I need your help :joy:

(It may be incorrect English but I am sorry)

jankeromnes commented 5 years ago

Hi @mouse484, many thanks for offering to translate Gitpod! And also for opening this issue. 🙏

The problem is on our side: it seems that our website is not yet set up for internationalization. Thankfully, it seems that with Gatsby it would be relatively easy. We'll need to:

Here are two blog posts that explain how this can be done:

mouse484 commented 5 years ago

I also thought about using a plug-in, but I couldn't do it because I did not have the knowledge of gatsby 😭

I checked and found some ways

jankeromnes commented 5 years ago

It seems that both guides I found use react-i18next. I think that's a pretty safe choice to pick.

react-i18next's quick start guide suggests adding these packages to our package.json:

(Note: The blog posts I found also suggest installing these other packages:

but maybe let's only install them if we really need them.)

mouse484 commented 5 years ago

I have roughly understood about i18n. I realized there was a need for major changes.

I"m not sure I can do it alone, so I would like to ask if you can help me.