win+R打开cmd 输入lv_i18n compile -t “你的yaml文件路径” -o “放置编译后的文件路径” 以此项目为例:lv_i18n compile -t "XXX/SquareLineMode/Medical/*.yml" -o "XXX/SquareLineMode/Medical/lv_i18n" 查看编译生成文件 lv_i18n.c的部分内容 5、将编译的文件放入项目 (1)之前有在VScode上有创建过...
.\node_modules\.bin\lv_i18n compile -t'users/gui/translations/*.yml'-o'users/gui/translations/lv_i18n/'-l'zh-CH' Step 4: Use lv_i18n.h to display multi-language content Include lv_i18n.h in your project #include"lv_i18n/lv_i18n.h" Initialize lv_i18n lv_i18n_init(lv_i18n_languag...
lv_i18n compile -t'translations/*.yml'-o'src/lv_i18n' The default locale isen-GBbut you change it with-l 'language-code'. You can use--optimizeto generate optimized C code. Without this, finding the corresponding translation bylv_i18n_get_text()is done by searching through all keys unt...
Added implicit compile rule explicitly ad1ceee Added missing "return 0" f587577 kisvegabor reviewed Oct 25, 2024 View reviewed changes Member kisvegabor left a comment This is a wonderful idea! Thank you! kisvegabor reviewed Oct 25, 2024 View reviewed changes example/README.md Show...
compile("locales", locale) os.chdir(cwd) def cli_main(): import argparse parser = argparse.ArgumentParser("tranlate tool") parser.add_argument("-p", "--path", default="", help="path to the root of plugin") parser.add_argument("cmd", type=str, choices=["prepare", "finish...