Files
2021-07-25 04:46:01 +08:00

19 lines
419 B
C++

#include <iostream>
using namespace System::Resources;
using namespace System::Reflection;
using namespace System;
using namespace System::IO;
ref class i18n
{
public:
static ResourceManager^ ResMgr = gcnew ResourceManager("Launcher.Resources", i18n::typeid->Assembly);
static String^ GetStringFallback(String^ name) {
String^ result = ResMgr->GetString(name);
return result != nullptr ? result : name;
}
};