lvgl / lv_i18n

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

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

Closed teaalltr closed 2 months ago

teaalltr commented 3 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 3 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".