mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 06:13:40 +01:00
feat: add runtime loglevel switch, /xllanguage command
This commit is contained in:
parent
1df07d5ed3
commit
179787099d
4 changed files with 67 additions and 14 deletions
|
|
@ -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")));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue