fix: language priority (#525)
This commit is contained in:

committed by
GitHub

parent
398947d931
commit
55087ca3fa
@@ -39,8 +39,9 @@ end
|
|||||||
|
|
||||||
function make_locale()
|
function make_locale()
|
||||||
local translations = {}
|
local translations = {}
|
||||||
for _, lang in ipairs(get_languages()) do
|
local languages = get_languages()
|
||||||
|
for i = #languages, 1, -1 do
|
||||||
|
lang = languages[i]
|
||||||
if (lang:match('.json$')) then
|
if (lang:match('.json$')) then
|
||||||
table_assign(translations, get_locale_from_json(lang))
|
table_assign(translations, get_locale_from_json(lang))
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user