1
0
Fork 0

Fix InputEventKey test failure under certain system languages

This commit is contained in:
Haoyu Qiu 2024-10-22 17:56:03 +08:00
parent a3080477ac
commit dc3de73d18
1 changed files with 3 additions and 0 deletions

View File

@ -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