mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Merge pull request #55801 from RaphaelAzev/issue-55746
This commit is contained in:
commit
7608e0cdca
@ -1092,9 +1092,12 @@ Array TranslationServer::get_loaded_locales() const {
|
|||||||
ERR_FAIL_COND_V(t.is_null(), Array());
|
ERR_FAIL_COND_V(t.is_null(), Array());
|
||||||
String l = t->get_locale();
|
String l = t->get_locale();
|
||||||
|
|
||||||
locales.push_back(l);
|
if (!locales.has(l)) {
|
||||||
|
locales.push_back(l);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
locales.sort();
|
||||||
return locales;
|
return locales;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user