Enhance Lua code generation by including comment using the base language

This commit is contained in:
Thorsten Sommer 2025-04-26 18:50:33 +02:00
parent 5a974fb45c
commit d13e42c689
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -345,6 +345,7 @@ public partial class AssistantI18N : AssistantBaseCore<SettingsDialogI18N>
private void Phase2CreateLuaCode()
{
this.finalLuaCode.Clear();
LuaTable.Create(ref this.finalLuaCode, "UI_TEXT_CONTENT", this.localizedContent, this.cancellationTokenSource!.Token);
var commentContent = this.addedContent.Concat(PluginFactory.BaseLanguage.Content).ToDictionary();
LuaTable.Create(ref this.finalLuaCode, "UI_TEXT_CONTENT", this.localizedContent, commentContent, this.cancellationTokenSource!.Token);
}
}