[solved] how to translate mod with class name?

Started by yiuaaa, June 06, 2020, 01:59:21 AM

Previous topic - Next topic

yiuaaa

for example:
<def>
<defName>example</defName>
<root Class="class1">
<nodes>
<li Class="class2">
<label>example label</label>
</li>
</nodes>
</root >
</def>


I have tried these two ways and both are not working.
<example.root.nodes.0.label>translated label</example.root.nodes.0.label>
<example.0.nodes.0.label>translated label</example.0.nodes.0.label>


Could someone help me?



solved by myself.
I need to add ".slateRef" to the end of the label. I don't know the reason, it is good if someone could explain it to me.