Skip to content

Commit

Permalink
Merge pull request #102649 from bruvzg/fb_loc
Browse files Browse the repository at this point in the history
Use fallback locale from project settings instead of hardcoded "en" for TextServer.
  • Loading branch information
akien-mga committed Feb 10, 2025
2 parents 271c987 + e9fd760 commit 261e7d3
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 261e7d3

Please sign in to comment.