refactor: optimize updateOrCreateLanguageFile

This commit is contained in:
Tsubasa6848
2024-05-25 22:56:16 +08:00
Unverified
parent bd29c9b9a2
commit 0ce4e4a1e5
+2 -1
View File
@@ -198,7 +198,8 @@ void Export_Compatibility_API() {
RemoteCall::exportAs( RemoteCall::exportAs(
"GMLIB_API", "GMLIB_API",
"updateOrCreateLanguageFile", "updateOrCreateLanguageFile",
[](std::string const& code, std::string const& lang, std::string const& path) -> void { [](std::string const& code, std::unordered_map<std::string, std::string> lang, std::string const& path
) -> void {
if (GMLIB_Level::getInstance()) { if (GMLIB_Level::getInstance()) {
I18nAPI::updateOrCreateLanguageFile(path, code, lang); I18nAPI::updateOrCreateLanguageFile(path, code, lang);
} }