fix: fix I18nAPI.get
This commit is contained in:
@@ -161,9 +161,16 @@ void Export_Compatibility_API() {
|
||||
});
|
||||
RemoteCall::exportAs(
|
||||
"GMLIB_API",
|
||||
"resourcePackTranslate",
|
||||
"resourcePackDefaultTranslate",
|
||||
[](std::string key, std::vector<std::string> params) -> std::string { return I18nAPI::get(key, params); }
|
||||
);
|
||||
RemoteCall::exportAs(
|
||||
"GMLIB_API",
|
||||
"resourcePackTranslate",
|
||||
[](std::string key, std::vector<std::string> params, std::string code) -> std::string {
|
||||
return I18nAPI::get(key, params, code);
|
||||
}
|
||||
);
|
||||
RemoteCall::exportAs("GMLIB_API", "chooseResourcePackI18nLanguage", [](std::string code) -> void {
|
||||
if (GMLIB_Level::getInstance()) {
|
||||
I18nAPI::chooseLanguage(code);
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
|
||||
#define PLUGIN_NAME fmt::format(fg(fmt::color::light_green), "GMLIB-LRCA")
|
||||
|
||||
#define LIB_VERSION GMLIB::Version(0, 12, 3)
|
||||
#define LIB_VERSION GMLIB::Version(0, 12, 4)
|
||||
|
||||
extern ll::Logger logger;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user