Get I18n Properties from Intellij Resource Bundle

Hello, I want to add localization to my plugin. Can I access the resource bundle within Intellij and how can I do this?

0

That doesn't help. I want something like SomeI18nService.getText(KEY_TO_PROPERTIE) or a example to access my own resource file inside my code. 

0

You need to create your own PluginBundle class, look at YAMLBundle (and its properties file) from yaml plugin for example.

1

Thank you, thats perfect.

0

Updating that the previous link from Nikolay is dead and that YAMLBundle.java is now the correct link

0

请先登录再写评论。