diff --git a/app/MindWork AI Studio/Assistants/I18N/AssistantI18N.razor b/app/MindWork AI Studio/Assistants/I18N/AssistantI18N.razor
index ed6c1505..38e9255f 100644
--- a/app/MindWork AI Studio/Assistants/I18N/AssistantI18N.razor
+++ b/app/MindWork AI Studio/Assistants/I18N/AssistantI18N.razor
@@ -18,9 +18,9 @@
else if (!this.isLoading && string.IsNullOrWhiteSpace(this.loadingIssue))
{
- Added Content (@this.addedKeys.Count entries)
+ Added Content (@this.addedContent.Count entries)
-
+
@@ -48,9 +48,9 @@ else if (!this.isLoading && string.IsNullOrWhiteSpace(this.loadingIssue))
- Removed Content (@this.removedKeys.Count entries)
+ Removed Content (@this.removedContent.Count entries)
-
+
diff --git a/app/MindWork AI Studio/Assistants/I18N/AssistantI18N.razor.cs b/app/MindWork AI Studio/Assistants/I18N/AssistantI18N.razor.cs
index 5ee4ee9a..592ff8b4 100644
--- a/app/MindWork AI Studio/Assistants/I18N/AssistantI18N.razor.cs
+++ b/app/MindWork AI Studio/Assistants/I18N/AssistantI18N.razor.cs
@@ -29,7 +29,7 @@ public partial class AssistantI18N : AssistantBaseCore
protected override string SubmitText => "Localize AI Studio & generate the Lua code";
- protected override Func SubmitAction => this.LocalizeText;
+ protected override Func SubmitAction => this.LocalizeTextConntent;
protected override bool SubmitDisabled => !this.localizationPossible;
@@ -66,8 +66,8 @@ public partial class AssistantI18N : AssistantBaseCore
private string searchString = string.Empty;
private Guid selectedLanguagePluginId;
private ILanguagePlugin? selectedLanguagePlugin;
- private Dictionary addedKeys = [];
- private Dictionary removedKeys = [];
+ private Dictionary addedContent = [];
+ private Dictionary removedContent = [];
#region Overrides of AssistantBase
@@ -119,7 +119,6 @@ public partial class AssistantI18N : AssistantBaseCore
//
// Read the file `Assistants\I18N\allTexts.lua`:
//
-
#if DEBUG
var filePath = Path.Join(Environment.CurrentDirectory, "Assistants", "I18N");
var resourceFileProvider = new PhysicalFileProvider(filePath);
@@ -156,8 +155,8 @@ public partial class AssistantI18N : AssistantBaseCore
var newI18NContent = pluginLanguage.Content;
var currentI18NContent = this.selectedLanguagePlugin.Content;
- this.addedKeys = newI18NContent.ExceptBy(currentI18NContent.Keys, n => n.Key).ToDictionary();
- this.removedKeys = currentI18NContent.ExceptBy(newI18NContent.Keys, n => n.Key).ToDictionary();
+ this.addedContent = newI18NContent.ExceptBy(currentI18NContent.Keys, n => n.Key).ToDictionary();
+ this.removedContent = currentI18NContent.ExceptBy(newI18NContent.Keys, n => n.Key).ToDictionary();
this.localizationPossible = true;
break;
}
@@ -196,7 +195,7 @@ public partial class AssistantI18N : AssistantBaseCore
return null;
}
- private async Task LocalizeText()
+ private async Task LocalizeTextConntent()
{
}
}
\ No newline at end of file