nodejs / nodejs.org

The Node.js® Website

Home Page:https://nodejs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add translations of snippet comments from Download Package Manager boxes

ovflowd opened this issue · comments

The snippets below are defined on a TypeScript file and shown below:

image

We can call the translation service (t) and include translation strings within the i18n JSON files for such comments; otherwise, it feels like the translation is lacking here.

Hey, can I work on this issue?
Could you explain the issue and the approach?

Thanks for your interest. We don't assign tickets if we can help it. Feel free to submit a pull request if you have time.
Reference 🍪 https://www.redhat.com/en/blog/dont-lick-cookie

@bmuenzenmeyer Hello, they weren't asking to be assigned an outcome, they were asking for guidance 😁.

So @PalashChitnavis, in util/getNodeDownloadSnippet.ts you have a function that return string to put on codebox. So issue "ask" to add i18n for comment. To add i18n on a string you I'll need to use client hooks from next-intl call useTranslation.

Also we have this doc about how to contribute on this repo : COLLABORATOR_GUIDE.md

To be fair, they did both. On mobile i answered too quickly, thanks for giving them next steps!

Hey @PalashChitnavis , Could you please let me know if you are working on this? else I will look into it.
Thanks

@nilkhankari I think you can go head