加入国际化(翻译)

This commit is contained in:
不吃油炸鸡
2026-01-28 15:48:59 +08:00
parent 486655f6d3
commit 1c96444084
4 changed files with 319 additions and 0 deletions

View File

@@ -88,6 +88,10 @@ void ui_init(void)
// set system settings
ui_set_display_rotation(ui_get_display_rotation());
// internationalization init
lv_i18n_init(lv_i18n_language_pack); //lv_i18n 的语言初始化
lv_i18n_set_locale("en"); //lv_i18n 设置当前语言
// main timer (you can add someting to do in the timer_cb if needed)
lv_timer_t * ui_MainTimer = lv_timer_create(main_timer_cb, 1000, NULL);