We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3212f1a commit 6feaf59Copy full SHA for 6feaf59
addons/mod_loader/api/mod.gd
@@ -73,8 +73,12 @@ static func add_translation(resource_path: String) -> void:
73
return
74
75
var translation_object: Translation = load(resource_path)
76
- TranslationServer.add_translation(translation_object)
77
- ModLoaderLog.info("Added Translation from Resource -> %s" % resource_path, LOG_NAME)
+ if translation_object:
+ TranslationServer.add_translation(translation_object)
78
+ ModLoaderLog.info("Added Translation from Resource -> %s" % resource_path, LOG_NAME)
79
+ else:
80
+ ModLoaderLog.fatal("Failed to load translation at path: %s" % [resource_path], LOG_NAME)
81
+
82
83
## [i]Note: This function requires Godot 4.3 or higher.[/i][br]
84
##[br]
0 commit comments