Merge pull request #104698 from bruvzg/loc_dir

Fix editor layout direction change on translation change.
This commit is contained in:
Rémi Verschelde 2025-03-28 14:34:52 +01:00
commit 3fe69cdf74
No known key found for this signature in database
GPG key ID: C3336907360768E1
3 changed files with 11 additions and 3 deletions

View file

@ -504,10 +504,10 @@ String TranslationServer::get_tool_locale() {
#ifdef TOOLS_ENABLED
if (Engine::get_singleton()->is_editor_hint() || Engine::get_singleton()->is_project_manager_hint()) {
const PackedStringArray &locales = editor_domain->get_loaded_locales();
if (locales.is_empty()) {
return "en";
if (locales.has(locale)) {
return locale;
}
return locales[0];
return "en";
} else {
#else
{