mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
providing_translations.md: Add information about selecting the IDE language in versions 2024.2+
This commit is contained in:
parent
aaa8b2e663
commit
4e94d6d11f
@ -42,10 +42,22 @@ The `locale` attribute defines the translation language on two possible levels:
|
|||||||
|
|
||||||
### Language Selection
|
### Language Selection
|
||||||
|
|
||||||
It is important to note that there is no language chooser in the IDE, and language packs serve as the IDE "language switcher."
|
<tabs>
|
||||||
|
<tab title="2024.2+">
|
||||||
|
|
||||||
|
In versions 2024.2 and newer language packs are bundled in IDE distributions.
|
||||||
|
To select the IDE language, follow the instruction from the [IntelliJ IDEA Web Help](https://www.jetbrains.com/help/idea/language-and-region.html#language).
|
||||||
|
|
||||||
|
</tab>
|
||||||
|
<tab title="Pre-2024.2">
|
||||||
|
|
||||||
|
In versions 2024.1 and older, there is no language selector in the IDE, and language packs serve as the IDE "language switcher."
|
||||||
Installing a language pack changes the IDE language to the one defined by the `languageBundle` EP.
|
Installing a language pack changes the IDE language to the one defined by the `languageBundle` EP.
|
||||||
Only a single language pack can be installed at the same time, and restart is required for the translations to take effect.
|
Only a single language pack can be installed at the same time, and restart is required for the translations to take effect.
|
||||||
|
|
||||||
|
</tab>
|
||||||
|
</tabs>
|
||||||
|
|
||||||
### Getting the Current Locale Programmatically
|
### Getting the Current Locale Programmatically
|
||||||
|
|
||||||
To get a current UI language set in the IDE, use [`DynamicBundle.getLocale()`](%gh-ic%/platform/core-api/src/com/intellij/DynamicBundle.java).
|
To get a current UI language set in the IDE, use [`DynamicBundle.getLocale()`](%gh-ic%/platform/core-api/src/com/intellij/DynamicBundle.java).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user