Skip to content

Commit

Permalink
Use fallback locale from project settings instead of hardcoded "en" f…
Browse files Browse the repository at this point in the history
…or TextServer.
  • Loading branch information
bruvzg committed Feb 10, 2025
1 parent 36d90c7 commit e9fd760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/string/translation_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit e9fd760

Please sign in to comment.