# For multilingual, I hope SquareLine can generate a refresh function based on the screen that includes all the labels that need to be translated

**URL:** <http://forum.squareline.io/t/for-multilingual-i-hope-squareline-can-generate-a-refresh-function-based-on-the-screen-that-includes-all-the-labels-that-need-to-be-translated/2437>\
**Category:** Feature requests\
**Created:** [January 25, 2024, 2:02am UTC](http://forum.squareline.io/t/for-multilingual-i-hope-squareline-can-generate-a-refresh-function-based-on-the-screen-that-includes-all-the-labels-that-need-to-be-translated/2437 "2024-01-25T02:02:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kanbaiStaok](http://forum.squareline.io/letter_avatar_proxy/v4/letter/k/e68b1a/32.png) [@kanbaiStaok](http://forum.squareline.io/u/kanbaiStaok)\
**Post date:** [January 25, 2024, 2:02am UTC](http://forum.squareline.io/t/for-multilingual-i-hope-squareline-can-generate-a-refresh-function-based-on-the-screen-that-includes-all-the-labels-that-need-to-be-translated/2437/1 "2024-01-25T02:02:14Z")

</div>

### What do you want to achieve?

After setting a new language with “lv\_i18n\_set\_locale()”, it is necessary to manually call “lv\_label\_set\_text()” to refresh all the text that needs to be translated.  
This step is manual.  
When there is a lot of text in the project, it can be very troublesome, and this step can be completely automated by the program.

like SquareLine generate some extra functions like the following:  
void refresh\_lv\_i18n\_label\_text\_screen(void)  
{  
// lv\_label\_set\_text() every multilingual label in your project, I have many lines in my actual code  
lv\_label\_set\_text(ui\_label, \_(“Countdown”));  
lv\_label\_set\_text(ui\_label, \_(“Set timer”));  
}

every “screen” can have a function like this, when re-translation, just call this function and refresh all the labels in the screen.

Desire for such a feature, pretty thanks!

### Do you see alternative options and workaround to achieve it?

### Mention some use cases

---

<div class="post-metadata">

**Author:** ![Hermit](http://forum.squareline.io/user_avatar/forum.squareline.io/hermit/32/971_2.png) [@Hermit](http://forum.squareline.io/u/Hermit)\
**Post date:** [January 29, 2024, 2:56pm UTC](http://forum.squareline.io/t/for-multilingual-i-hope-squareline-can-generate-a-refresh-function-based-on-the-screen-that-includes-all-the-labels-that-need-to-be-translated/2437/2 "2024-01-29T14:56:55Z")

</div>

Thanks for the feedback. At the moment SquareLine Studio puts the translatable texts between \_() for i18n gettext to find it, but it doesn’t handle the language-switching. We’ll consider adding it in the future.

---

<div class="post-metadata">

**Author:** ![kanbaiStaok](http://forum.squareline.io/letter_avatar_proxy/v4/letter/k/e68b1a/32.png) [@kanbaiStaok](http://forum.squareline.io/u/kanbaiStaok)\
**Post date:** [January 30, 2024, 9:35am UTC](http://forum.squareline.io/t/for-multilingual-i-hope-squareline-can-generate-a-refresh-function-based-on-the-screen-that-includes-all-the-labels-that-need-to-be-translated/2437/3 "2024-01-30T09:35:48Z")

</div>

thanks and very looking forward to see this function ready, that would be very very helpful!!!

---

<div class="post-metadata">

**Author:** ![Richard](http://forum.squareline.io/user_avatar/forum.squareline.io/richard/32/1129_2.png) [@Richard](http://forum.squareline.io/u/Richard)\
**Post date:** [April 23, 2025, 6:28pm UTC](http://forum.squareline.io/t/for-multilingual-i-hope-squareline-can-generate-a-refresh-function-based-on-the-screen-that-includes-all-the-labels-that-need-to-be-translated/2437/4 "2025-04-23T18:28:46Z")

</div>

We found that dynamic screens handle this quite well - since the dynamic screen is re-initialized each time it’s shown, the only screen that needs special handling is the language-select screen.
