template_support.md: i18n (IJSDK-919)

This commit is contained in:
Yann Cébron 2020-10-29 17:55:29 +01:00
parent 4c534873b7
commit 4bac37ff62

View File

@ -47,6 +47,8 @@ The export produces a file called `Markdown.xml` with the following contents:
</templateSet>
```
The display `name` can also provide localized variants by specifying `key` and `resource-bundle` attributes additionally (2020.3 and later).
Copy this file into the [plugin's resources folder](https://github.com/JetBrains/intellij-sdk-code-samples/tree/master/live_templates/src/main/resources/liveTemplates).
## Implement TemplateContextType
@ -134,4 +136,5 @@ Using the `com.intellij.defaultLiveTemplatesProvider` and `com.intellij.liveTemp
## Check Plugin
Now verify the plugin is working correctly.
Run the plugin in a Development Instance and verify there is a new entry under **Settings/Preferenes \| Live Templates \| Markdown \| \{ (SDK: New link reference)**.
Finally, create a new file `Test.md` and confirm that the Live Template works by entering a <kbd>{</kbd> character and then pressing <kbd>Tab</kbd>.
Finally, create a new file `test.md` and confirm that the Live Template works by entering a <kbd>{</kbd> character and then pressing <kbd>Tab</kbd>.