Hey everyone! I'm working on a self-hosted React TypeScript project that recently got a lot of attention on some Chinese forums. Right now, it's only available in English, and I want to make it accessible for a broader audience. I have about a year of React experience, but I'm seeking advice on localization. Here are some specific questions I'd love help with:
- How can I find people who are willing to translate my content? What's a reasonable cost for this service, and can I rely on something like Google Translate for initial translations?
- What tools or methods do you recommend for displaying text based on the user's selected language?
- What's the best way to store the user's preferred language? Is it okay to just use cookies?
For reference, my website has around 200 words to translate, and most of the content involves a protocol called SSH, which will be automatically translated by a server I don't control. Thanks in advance for your help!
1 Answer
React has some solid packages for internationalization (i18n is the term) that can really ease the technical side of localization. If you're looking for human help, try asking in language community forums; it’s often the cheapest way to get translations done!
I totally agree! Properly using an i18n package can make a huge difference. I once had to handle Arabic support, which has five plural forms. With a good i18n library, you can define the plurals and manage translations more effectively. Check out i18next if you haven’t already!