Merge pull request #102649 from bruvzg/fb_loc

Use fallback locale from project settings instead of hardcoded "en" for TextServer.
This commit is contained in:
Rémi Verschelde
2025-02-10 10:50:02 +01:00

View File

@ -503,7 +503,7 @@ String TranslationServer::get_tool_locale() {
// Look for best matching loaded translation.
Ref<Translation> t = main_domain->get_translation_object(locale);
if (t.is_null()) {
return "en";
return fallback;
}
return t->get_locale();
}