Skip to main content
Nex-Leo
Associate II
September 24, 2025
Solved

When the language changes, how can resizeToCurrentText be automatically and in batches executed

  • September 24, 2025
  • 2 replies
  • 534 views

We will constantly monitor whether the parameters of the language change in a background container. If they do change, we will apply the new language. But for components that are not in this container on the same screen, how can we resize them most appropriately?

Best answer by LouisB

Hello @Nex-Leo,

You can check interactions, triggers and actions, here there's a tutorial : Tutorial 5: Creating Custom Triggers and Actions | TouchGFX Documentation

BR,

2 replies

ST Employee
September 24, 2025

Hello @Nex-Leo,

I'm not sure to understand, you want to change the value of one container when another container changes ? Are they both on the same screen ?

BR, 

Nex-Leo
Nex-LeoAuthor
Associate II
September 25, 2025

Hello, @LouisB 

Yes, they belong to the same screen.

For instance, the English word for the copy "Control" is "Control", and the Chinese word is "控制". As a result, their lengths will vary in different languages, If I have performed "resizeToCurrentText" in Chinese, then when the language changes to English, it will be displayed as incomplete.

BR,

LouisBBest answer
ST Employee
September 25, 2025

Hello @Nex-Leo,

You can check interactions, triggers and actions, here there's a tutorial : Tutorial 5: Creating Custom Triggers and Actions | TouchGFX Documentation

BR,