Added the language plugin option in I18N settings

This commit is contained in:
Thorsten Sommer 2025-04-25 15:28:59 +02:00
parent 9a339c6d6d
commit a84cfa15ba
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 6 additions and 0 deletions

View File

@ -16,6 +16,7 @@
{
<ConfigurationText OptionDescription="@T("Preselect another target language")" Disabled="@(() => !this.SettingsManager.ConfigurationData.I18N.PreselectOptions)" Icon="@Icons.Material.Filled.Translate" Text="@(() => this.SettingsManager.ConfigurationData.I18N.PreselectOtherLanguage)" TextUpdate="@(updatedText => this.SettingsManager.ConfigurationData.I18N.PreselectOtherLanguage = updatedText)"/>
}
<ConfigurationSelect OptionDescription="Language plugin used for comparision" SelectedValue="@(() => this.SettingsManager.ConfigurationData.I18N.PreselectedLanguagePluginId)" Data="@ConfigurationSelectDataFactory.GetLanguagesData()" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.I18N.PreselectedLanguagePluginId = selectedValue)" OptionHelp="Select the language plugin used for comparision."/>
<ConfigurationProviderSelection Component="Components.I18N_ASSISTANT" Data="@this.availableLLMProviders" Disabled="@(() => !this.SettingsManager.ConfigurationData.I18N.PreselectOptions)" SelectedValue="@(() => this.SettingsManager.ConfigurationData.I18N.PreselectedProvider)" SelectionUpdate="@(selectedValue => this.SettingsManager.ConfigurationData.I18N.PreselectedProvider = selectedValue)"/>
</MudPaper>
</DialogContent>

View File

@ -6,6 +6,11 @@ public class DataI18N
/// Preselect any I18N options?
/// </summary>
public bool PreselectOptions { get; set; }
/// <summary>
/// Preselect a language plugin to where the new content should compare to?
/// </summary>
public Guid PreselectedLanguagePluginId { get; set; }
/// <summary>
/// Preselect the target language?