AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Intellij add plugin9/28/2023 The centerpiece of localization is DynamicBundle. Why Most Things Don’t Work for 3rd-party Plugins That’s why the same language pack plugin is installed in IntelliJ IDEA, GoLand or PhpStorm.Ī language pack contains the following resources: Contents of a Language PackĪs mentioned above, a single pack supports multiple JetBrains products and JetBrains plugins. You have to write some code to make things work in your plugin. It’s JetBrains products and plugins and that is the major pain point here – 3rd-party plugins can’t use the infrastructure created for language packs. So far, JetBrains is offering three different language packs:Įach of the packs supports multiple JetBrains products and even plugins. It implements a single extension point and bundles localized resources for all products and plugins it supports.įor example, the Chinese language pack is doing this in its plugin.xml file: Technically, a language pack is a plugin. This article is about 2021.3 and later, because the language packs have evolved a bit.īut, to a degree, it’s technically possible to support even older major versions. The installation of a language pack requires a restart – switching the language without a restart is not possible.Ģ020.1 was the first version with support for a localized user interface. Only one of the available language packs will be used to provide the localized resources to the IDE and plugins. Only one language should be installed at a time, for example Simplified Chinese and Japanese shouldn’t be installed at the same time. To switch the language of your IDE’s user interface, install a language pack from the Marketplace. The language of the user interface is controlled by the installed language pack. This wasn’t as straight-forward as you might expect.Īctually, almost nothing worked out-of-the-box, and it was a frustrating experience.īy sharing what I learned I hope to make things a bit easier for others □ What are Language Packs? I recently added support for Simplified Chinese to my plugin BashSupport Pro. Well, it’s possible – but there’s no “automatically” for you this time □ Wouldn’t it be great if your plugin automatically adapted to this language? JetBrains’ IDEs are available in English, Simplified Chinese, Japanese and Korean. Published 2022-01-.3 Products all Sample Code jansorg/intellij-plugin-localization Introduction
0 Comments
Read More
Leave a Reply. |