ReadMeThis is a straightforward solution for a developers translation-mapping issues. Essentialy it does do the following: if you hover a word in your code or markup that matches an id inside your json-translation-mapping, a tooltip is shown. This tooltip either contains the first or all translations found for the hovered id. ExampleBasic example 1Assuming you have some dedicated JSON-translation file inside your project named
As an configuration for this you might come up, defining the translation-files name like this: Whenever you find some string inside your project's files you may hover it to see the translation of that key as a hovering tooltip: Basic example 2 (Usage of prefix-setting)However this approach can be optimized in terms of performance if you have translation-keys that share a common prefix:
As an configuration for this you might come up with something like: Whenever you find some string inside your project's files you may hover it to see the translation of that key as a hovering tooltip: Basic example 3 (Multiple languages in one file)However it might happen you do not have one single translation language inside the same file, but multiple. As an example it might look like:
In such a situation it's likely you want to see all translations at once.
To enable such a behavior just set the When hovering a translation key now, you will see this: Basic example 4 (nested translations)As you can see, the nesting of your keys does not matter, so that you can access also access translations at different depth of nesting:
In action this will work just as well as before: Basic example 5As of v0.0.2 it is possible to use multiple json-files as sources for translations. Think of having two files,
When setting multiple files as translations sources by adding them via the In action this will work just as well as before: However be aware that setting Roadmap
InstallJust like any other VSCode extension. Restart VSCode (just to be sure) ConfigureVia user- or workspace settings:
DevelopFor information on how to buld, test and publish this extension
please have a look at Preperations
Test in Debug modeJust start VSCode's debuger. That's basically it Install for local pre-publish-testing
|