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!