Where does the function client.getText get the labels from | XM Community
Solved

Where does the function client.getText get the labels from

  • 25 February 2024
  • 1 reply
  • 15 views

Userlevel 3
Badge +11

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!

icon

Best answer by qHubert 27 February 2024, 00:56

View original

1 reply

Userlevel 1
Badge +5

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