Skip to content

Commit

Permalink
Fix InputEventKey test failure under certain system languages
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyqiu committed Oct 28, 2024
1 parent a308047 commit dc3de73
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,9 @@ struct GodotTestCaseListener : public doctest::IReporter {
#ifdef TOOLS_ENABLED
if (EditorSettings::get_singleton()) {
EditorSettings::destroy();

// Instantiating the EditorSettings singleton sets the locale to the editor's language.
TranslationServer::get_singleton()->set_locale("en");
}
#endif // TOOLS_ENABLED

Expand Down

0 comments on commit dc3de73

Please sign in to comment.