IA自定义panel国际化

xiaoxiao2026-09-11  2

继承CustomCodeAction很容易国际化,这里不做过多的说明。 而如果继承CustomCodePanel,如何进行国际化呢? 答案如下:

如:在public boolean setupUI(CustomCodePanelProxy customCodePanelProxy) {中

使用customCodePanelProxy.getValue("systemInfoLable.text")来获取自定义的变量名称。

而systemInfoLable.text是定义在projectlocales目录下的custom_en和其他国际化文件中的。

 

注:在locales文件中自定义“标签”不能使用三个“.”,否则不能识别。

转载请注明原文地址: https://www.6miu.com/read-5052538.html

最新回复(0)