From dc3de73d18d6155c535373f275488f63aafa8a74 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Tue, 22 Oct 2024 17:56:03 +0800 Subject: [PATCH] Fix InputEventKey test failure under certain system languages --- tests/test_main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_main.cpp b/tests/test_main.cpp index 979aee80013..e6dbc355b94 100644 --- a/tests/test_main.cpp +++ b/tests/test_main.cpp @@ -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