Where does the function client.getText get the labels from | XM Community
Skip to main content

This might be a super stupid question, but I have now spent several hours on this, and can’t seem to figure this one out on my own.

In the different parts of the extension setup, the function client.getText(‘xyz’) is used to get a label returned that is matching the “xyz” value.

When do I find and change the label for “xyz”?

Thanks in advance!

Hi!

Any time you see plugin client methods and are wondering what they do, take a look at the Plugin Client reference documentation.

Here’s the section for getText. Basically, it’s referencing the translations files. Depending on what level you’re calling getText for (at the Extension level or Plugin level) the translations files will be in different locations, but you’re generally looking for something like EN.json. 


Leave a Reply