Skip to content

Commit

Permalink
fix: fix missing i18n::load
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Jan 23, 2024
1 parent 9e2f891 commit a69c882
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/ScriptEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "engine/LocalShareData.h"
#include "engine/MessageSystem.h"
#include "engine/RemoteCall.h"
#include "ll/api/i18n/I18nAPI.h"
#include "main/Configs.h"
#include "main/EconomicSystem.h"
#include "main/SafeGuardRecord.h"
Expand Down Expand Up @@ -39,7 +40,7 @@ void entry() {
// {{"GitHub", "github.com/LiteLDev/LiteLoaderBDS"}});

// Load i18n files
// Translation::loadFromImpl(GetCurrentModule(), ll::getLoaderHandle());
ll::i18n::load(u8"plugins/LeviLamina/lang");

// Init global share data
InitLocalShareData();
Expand Down Expand Up @@ -83,4 +84,4 @@ void entry() {
InitMessageSystem();

MoreGlobal::Init();
}
}

0 comments on commit a69c882

Please sign in to comment.