feat: add runtime loglevel switch, /xllanguage command

This commit is contained in:
goat 2020-04-16 12:15:23 +02:00
parent 1df07d5ed3
commit 179787099d
4 changed files with 67 additions and 14 deletions

View file

@ -39,6 +39,11 @@ namespace Dalamud
}
public void SetupWithLangCode(string langCode) {
if (langCode.ToLower() == "en") {
Loc.SetupWithFallbacks();
return;
}
Loc.Setup(File.ReadAllText(Path.Combine(this.workingDirectory, "UIRes", "loc", "dalamud", $"dalamud_{langCode}.json")));
}
}