mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-27 23:39:48 +00:00
Some checks are pending
Build and Release / Read metadata (push) Waiting to run
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-apple-darwin, osx-arm64, macos-latest, aarch64-apple-darwin, dmg updater) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis updater) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-unknown-linux-gnu, linux-arm64, ubuntu-22.04-arm, aarch64-unknown-linux-gnu, appimage deb updater) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg updater) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis updater) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage deb updater) (push) Blocked by required conditions
Build and Release / Prepare & create release (push) Blocked by required conditions
Build and Release / Publish release (push) Blocked by required conditions
124 lines
5.1 KiB
Plaintext
124 lines
5.1 KiB
Plaintext
@attribute [Route(Routes.ASSISTANT_AI_STUDIO_I18N)]
|
|
@using AIStudio.Settings
|
|
@inherits AssistantBaseCore<AIStudio.Dialogs.Settings.SettingsDialogI18N>
|
|
|
|
<EnumSelection T="CommonLanguages" NameFunc="@(language => language.NameSelecting())" @bind-Value="@this.selectedTargetLanguage" ValidateSelection="@this.ValidatingTargetLanguage" Icon="@Icons.Material.Filled.Translate" Label="Target language" AllowOther="@true" OtherValue="CommonLanguages.OTHER" @bind-OtherInput="@this.customTargetLanguage" ValidateOther="@this.ValidateCustomLanguage" LabelOther="Custom target language" SelectionUpdated="_ => this.OnChangedLanguage()" />
|
|
<ConfigurationSelect OptionDescription="Language plugin used for comparision" SelectedValue="@(() => this.selectedLanguagePluginId)" Data="@ConfigurationSelectDataFactory.GetLanguagesData()" SelectionUpdate="@(async void (id) => await this.OnLanguagePluginChanged(id))" OptionHelp="Select the language plugin used for comparision."/>
|
|
@if (this.isLoading)
|
|
{
|
|
<MudText Typo="Typo.body1" Class="mb-6">
|
|
The data is being loaded, please wait...
|
|
</MudText>
|
|
} else if (!this.isLoading && !string.IsNullOrWhiteSpace(this.loadingIssue))
|
|
{
|
|
<MudText Typo="Typo.body1" Class="mb-6">
|
|
While loading the I18N data, an issue occurred: @this.loadingIssue
|
|
</MudText>
|
|
}
|
|
else if (!this.isLoading && string.IsNullOrWhiteSpace(this.loadingIssue))
|
|
{
|
|
<MudText Typo="Typo.h6">
|
|
Added Content (@this.addedContent.Count entries)
|
|
</MudText>
|
|
<MudTable Items="@this.addedContent" Hover="@true" Filter="@this.FilterFunc" Class="border-dashed border rounded-lg mb-6">
|
|
<ToolBarContent>
|
|
<MudTextField @bind-Value="@this.searchString" Immediate="true" Placeholder="Search" Adornment="Adornment.Start" AdornmentIcon="@Icons.Material.Filled.Search" IconSize="Size.Medium" Class="mt-0"/>
|
|
</ToolBarContent>
|
|
<ColGroup>
|
|
<col/>
|
|
<col/>
|
|
</ColGroup>
|
|
<HeaderContent>
|
|
<MudTh>Key</MudTh>
|
|
<MudTh>Text</MudTh>
|
|
</HeaderContent>
|
|
<RowTemplate>
|
|
<MudTd>
|
|
<pre style="font-size: 0.8em;">
|
|
@context.Key
|
|
</pre>
|
|
</MudTd>
|
|
<MudTd>
|
|
@context.Value
|
|
</MudTd>
|
|
</RowTemplate>
|
|
<PagerContent>
|
|
<MudTablePager />
|
|
</PagerContent>
|
|
</MudTable>
|
|
|
|
<MudText Typo="Typo.h6">
|
|
Removed Content (@this.removedContent.Count entries)
|
|
</MudText>
|
|
<MudTable Items="@this.removedContent" Hover="@true" Filter="@this.FilterFunc" Class="border-dashed border rounded-lg mb-6">
|
|
<ToolBarContent>
|
|
<MudTextField @bind-Value="@this.searchString" Immediate="true" Placeholder="Search" Adornment="Adornment.Start" AdornmentIcon="@Icons.Material.Filled.Search" IconSize="Size.Medium" Class="mt-0"/>
|
|
</ToolBarContent>
|
|
<ColGroup>
|
|
<col/>
|
|
<col/>
|
|
</ColGroup>
|
|
<HeaderContent>
|
|
<MudTh>Key</MudTh>
|
|
<MudTh>Text</MudTh>
|
|
</HeaderContent>
|
|
<RowTemplate>
|
|
<MudTd>
|
|
<pre style="font-size: 0.8em;">
|
|
@context.Key
|
|
</pre>
|
|
</MudTd>
|
|
<MudTd>
|
|
@context.Value
|
|
</MudTd>
|
|
</RowTemplate>
|
|
<PagerContent>
|
|
<MudTablePager />
|
|
</PagerContent>
|
|
</MudTable>
|
|
|
|
@if (this.selectedTargetLanguage is CommonLanguages.EN_US)
|
|
{
|
|
<MudJustifiedText Typo="Typo.body1" Class="mb-6">
|
|
Please note: neither is a translation needed nor performed for English (USA). Anyway, you might want to generate the related Lua code.
|
|
</MudJustifiedText>
|
|
}
|
|
else
|
|
{
|
|
<ProviderSelection @bind-ProviderSettings="@this.providerSettings" ValidateProvider="@this.ValidatingProvider"/>
|
|
}
|
|
|
|
@if (this.localizedContent.Count > 0)
|
|
{
|
|
<hr style="width: 100%; border-width: 0.25ch;" class="mt-6 mb-6"/>
|
|
<MudText Typo="Typo.h6">
|
|
Localized Content (@this.localizedContent.Count entries of @this.NumTotalItems)
|
|
</MudText>
|
|
<MudTable Items="@this.localizedContent" Hover="@true" Filter="@this.FilterFunc" Class="border-dashed border rounded-lg mb-6">
|
|
<ToolBarContent>
|
|
<MudTextField @bind-Value="@this.searchString" Immediate="true" Placeholder="Search" Adornment="Adornment.Start" AdornmentIcon="@Icons.Material.Filled.Search" IconSize="Size.Medium" Class="mt-0"/>
|
|
</ToolBarContent>
|
|
<ColGroup>
|
|
<col/>
|
|
<col/>
|
|
</ColGroup>
|
|
<HeaderContent>
|
|
<MudTh>Key</MudTh>
|
|
<MudTh>Text</MudTh>
|
|
</HeaderContent>
|
|
<RowTemplate>
|
|
<MudTd>
|
|
<pre style="font-size: 0.8em;">
|
|
@context.Key
|
|
</pre>
|
|
</MudTd>
|
|
<MudTd>
|
|
@context.Value
|
|
</MudTd>
|
|
</RowTemplate>
|
|
<PagerContent>
|
|
<MudTablePager />
|
|
</PagerContent>
|
|
</MudTable>
|
|
}
|
|
} |