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

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

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.

1 Like

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