Merge pull request #55801 from RaphaelAzev/issue-55746

This commit is contained in:
Rémi Verschelde 2021-12-11 00:19:51 +01:00 committed by GitHub
commit 7608e0cdca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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;
} }