2024-06-05 23:37:16 -05:00
|
|
|
@inherits FeedbackComponent<string, string>
|
Add localization support to launcher
Adds localization across the launcher and includes English, German, Spanish, French, Italian, Japanese, Korean, Dutch, Portuguese, Ukranian, and Chinese. These localizations were generated by Claude 3.5 and need to be reviewed by a human for accuracy.
2025-08-18 21:29:38 -05:00
|
|
|
@inject LocalizationService LocalizationService
|
2024-06-05 23:37:16 -05:00
|
|
|
|
|
|
|
|
<Form Model="Model" OnFinish="Save">
|
Add localization support to launcher
Adds localization across the launcher and includes English, German, Spanish, French, Italian, Japanese, Korean, Dutch, Portuguese, Ukranian, and Chinese. These localizations were generated by Claude 3.5 and need to be reviewed by a human for accuracy.
2025-08-18 21:29:38 -05:00
|
|
|
<FormItem Label="@LocalizationService.GetString("NewName")">
|
2024-06-05 23:37:16 -05:00
|
|
|
<Input @bind-Value="@context.NewAlias" />
|
|
|
|
|
</FormItem>
|
|
|
|
|
</Form>
|
|
|
|
|
|
|
|
|
|
@code {
|
|
|
|
|
public ChangeAliasDialogModel Model { get; set; } = new ChangeAliasDialogModel();
|
|
|
|
|
|
|
|
|
|
public class ChangeAliasDialogModel
|
|
|
|
|
{
|
|
|
|
|
public string NewAlias { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override async Task OnFeedbackOkAsync(ModalClosingEventArgs args)
|
|
|
|
|
{
|
|
|
|
|
await base.OkCancelRefWithResult!.OnOk(Model.NewAlias);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async Task Save(EditContext editContext)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|