lvgl / lv_i18n

Internationalization (i18n) for LVGL
MIT License
62 stars 17 forks source link

[question] Does this support changing labels lang at runtime? #60

Closed teaalltr closed 4 months ago

teaalltr commented 5 months ago

Sorry for the potentially silly question but I'm a bit confused. Does this lib support changing the lang at runtime or is it just a compile-time thing? Thank you! @seyyah @puzrin @kisvegabor

kisvegabor commented 5 months ago

It can be changed in runtimet too, by calling lv_i18n_set_locale("...") again. However you need to set the texts of the labels again because e.g. lv_label_set_text(label, _("dog")); set the previous translation of "dog".