mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 11:39:48 +00:00
Fixed key handling by removing the root part
This commit is contained in:
parent
7b621578ea
commit
e8e84dfb14
@ -351,5 +351,10 @@ public partial class AssistantI18N : AssistantBaseCore<SettingsDialogI18N>
|
|||||||
this.finalLuaCode.Clear();
|
this.finalLuaCode.Clear();
|
||||||
var commentContent = this.addedContent.Concat(PluginFactory.BaseLanguage.Content).ToDictionary();
|
var commentContent = this.addedContent.Concat(PluginFactory.BaseLanguage.Content).ToDictionary();
|
||||||
LuaTable.Create(ref this.finalLuaCode, "UI_TEXT_CONTENT", this.localizedContent, commentContent, this.cancellationTokenSource!.Token);
|
LuaTable.Create(ref this.finalLuaCode, "UI_TEXT_CONTENT", this.localizedContent, commentContent, this.cancellationTokenSource!.Token);
|
||||||
|
|
||||||
|
// Next, we must remove the `root::` prefix from the keys:
|
||||||
|
this.finalLuaCode.Replace("""UI_TEXT_CONTENT["root::""", """
|
||||||
|
UI_TEXT_CONTENT["
|
||||||
|
""");
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user