mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
refactor frontend/locale
This commit is contained in:
parent
b202d1455b
commit
4c8742ce46
6 changed files with 95 additions and 77 deletions
|
|
@ -771,7 +771,7 @@ static int l_gui_reindex(lua::State* L) {
|
|||
|
||||
/// @brief gui.get_locales_info() -> table of tables
|
||||
static int l_gui_get_locales_info(lua::State* L) {
|
||||
auto& locales = langs::locales_info;
|
||||
auto& locales = langs::get_locales_info();
|
||||
lua::createtable(L, 0, locales.size());
|
||||
for (auto& entry : locales) {
|
||||
lua::createtable(L, 0, 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue