lokalise / i18n-ally

🌍 All in one i18n extension for VS Code
https://marketplace.visualstudio.com/items?itemName=lokalise.i18n-ally
MIT License
3.86k stars 307 forks source link

Support `keyPrefix` options from react-i18next #719

Open zog opened 2 years ago

zog commented 2 years ago

Is your feature related to a specific framework or general for this extension react-i18next

Is your feature request related to a problem? Please describe. When using the keyPrefix option of useTranslation (https://react.i18next.com/latest/usetranslation-hook#optional-keyprefix-option), keys are marked are not exisiting.

Screenshot from 2022-01-20 10-39-41

Describe the solution you'd like I'd like i18n-ally to use the keyPrefix in the keys resolution

karzQ commented 2 years ago

Regarding the projects I worked on since some months, this feature would be really necessary .. It's the main wall making me unable to propose this tool to my team as we are working with keyPrefix ..

PrintNow commented 2 years ago

This feature is really necessary, looking forward to adding

vovsemenv commented 2 years ago

@zog @PrintNow @karzQ can you test my pr in your cases? For me it woks just fine

alich96 commented 1 year ago

Hello, is there already a way in intellij where I can setup i18 ally to look for keyPrefixes in the file? :)

1000ship commented 1 year ago

Is this still pending?

terales commented 1 year ago

Almost ready, looking for help with fixing the review issues and adding an e2e test: https://github.com/lokalise/i18n-ally/pull/770#pullrequestreview-1597186313

AndreJorgeLopes commented 10 months ago

While it isn't ready, is there any workaround ?

vovsemenv commented 10 months ago

While it isn't ready, is there any workaround ?

Build and use it just like this)

Catlike14 commented 7 months ago

Almost ready, looking for help with fixing the review issues and adding an e2e test: #770 (review)

Any news?

carlosmfreitas2409 commented 1 month ago

Updates?

carlosmfreitas2409 commented 1 month ago

Hey guys!

As I was also interested in this functionality, so I created a PR based on @vovsemenv PR, but with some improvements. As it appears this extension is not being maintained, I forked it and published it on the Marketplace with my code.

The PR in the repository is: #1176

And you can download the extension here: https://marketplace.visualstudio.com/items?itemName=carlosmeduardo.i18n-ally-pro

ps: you also need to activate the i18n-ally.keyPrefix on settings.

Thanks!