crowdin / vscode-crowdin

Crowdin Explorer for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=Crowdin.vscode-crowdin
MIT License
51 stars 5 forks source link

Autocomplete and hover hints #67

Closed awmottaz closed 1 year ago

awmottaz commented 2 years ago

Is your feature request related to a problem? Please describe.

It would be great if this extension could help me fill in the correct translation keys and provide hover information about a translation key.

Describe the solution you'd like

I understand that these features require some level of parsing of source files, which the Crowdin app already can do. For my use case, the i18next JSON format, Android XML, and iOS strings are what I need.

Describe alternatives you've considered

Additional context

I am interested in contributing. Is this something you would accept outside contributions for?

andrii-bodnar commented 2 years ago

Hi @awmottaz, thanks a lot for your suggestion, it's a great idea! 🎉

I would suggest splitting these features into two parts.

I understand that these features require some level of parsing of source files

If there is a way not to parse files, but use some common approach for all the formats - we would prefer this way. Because file parsing is a difficult thing, there are a lot of file types and it requires a huge effort to correctly support all of them.

The feature with the autocomplete looks not so epic :)

I can see two ways to implement this:

Also, we should consider the performance - there can be thousands or even millions of strings in a crowdin project.

We are highly welcome contributions and happy to accept them 🙂

andrii-bodnar commented 2 years ago

Hi @awmottaz!

We have released a new version of the plugin with the string keys autocompletion 🎉

We would be pleased to receive your feedback!