mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 10:39:47 +00:00
Migrated some text to use I18N
This commit is contained in:
parent
5dc3e0dab1
commit
2ba4789b31
@ -7,11 +7,11 @@
|
|||||||
<MudText Typo="Typo.h3" Class="mb-2 mr-3">
|
<MudText Typo="Typo.h3" Class="mb-2 mr-3">
|
||||||
@if (this.chatThread is not null && this.chatThread.WorkspaceId != Guid.Empty)
|
@if (this.chatThread is not null && this.chatThread.WorkspaceId != Guid.Empty)
|
||||||
{
|
{
|
||||||
@($"Chat in Workspace \"{this.currentWorkspaceName}\"")
|
@(T("Chat in Workspace") + $" \"{this.currentWorkspaceName}\"")
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@("Temporary Chat")
|
@(T("Short-Term Chat"))
|
||||||
}
|
}
|
||||||
</MudText>
|
</MudText>
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ public partial class Chat : MSGComponentBase
|
|||||||
|
|
||||||
public override string ComponentName => nameof(Chat);
|
public override string ComponentName => nameof(Chat);
|
||||||
|
|
||||||
public override Task ProcessIncomingMessage<T>(ComponentBase? sendingComponent, Event triggeredEvent, T? data) where T : default
|
protected override Task ProcessIncomingMessage<T>(ComponentBase? sendingComponent, Event triggeredEvent, T? data) where T : default
|
||||||
{
|
{
|
||||||
switch (triggeredEvent)
|
switch (triggeredEvent)
|
||||||
{
|
{
|
||||||
@ -96,10 +96,5 @@ public partial class Chat : MSGComponentBase
|
|||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override Task<TResult?> ProcessMessageWithResult<TPayload, TResult>(ComponentBase? sendingComponent, Event triggeredEvent, TPayload? data) where TResult : default where TPayload : default
|
|
||||||
{
|
|
||||||
return Task.FromResult(default(TResult));
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
@ -1,8 +1,11 @@
|
|||||||
@attribute [Route(Routes.HOME)]
|
@attribute [Route(Routes.HOME)]
|
||||||
|
@inherits MSGComponentBase
|
||||||
|
|
||||||
<div class="inner-scrolling-context">
|
<div class="inner-scrolling-context">
|
||||||
<MudImage Src="svg/banner.svg" Style="max-height: 16em; width: 100%; object-fit: cover;" />
|
<MudImage Src="svg/banner.svg" Style="max-height: 16em; width: 100%; object-fit: cover;" />
|
||||||
<MudText Typo="Typo.h3" Class="mt-2 mb-2">Let's get started</MudText>
|
<MudText Typo="Typo.h3" Class="mt-2 mb-2">
|
||||||
|
@T("Let's get started")
|
||||||
|
</MudText>
|
||||||
|
|
||||||
<InnerScrolling>
|
<InnerScrolling>
|
||||||
<MudExpansionPanels Class="mb-3" MultiExpansion="@false">
|
<MudExpansionPanels Class="mb-3" MultiExpansion="@false">
|
||||||
|
@ -6,7 +6,7 @@ using Changelog = AIStudio.Components.Changelog;
|
|||||||
|
|
||||||
namespace AIStudio.Pages;
|
namespace AIStudio.Pages;
|
||||||
|
|
||||||
public partial class Home : ComponentBase
|
public partial class Home : MSGComponentBase
|
||||||
{
|
{
|
||||||
[Inject]
|
[Inject]
|
||||||
private HttpClient HttpClient { get; init; } = null!;
|
private HttpClient HttpClient { get; init; } = null!;
|
||||||
@ -23,6 +23,12 @@ public partial class Home : ComponentBase
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region Overrides of MSGComponentBase
|
||||||
|
|
||||||
|
public override string ComponentName => nameof(Home);
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
private async Task ReadLastChangeAsync()
|
private async Task ReadLastChangeAsync()
|
||||||
{
|
{
|
||||||
var latest = Changelog.LOGS.MaxBy(n => n.Build);
|
var latest = Changelog.LOGS.MaxBy(n => n.Build);
|
||||||
|
Loading…
Reference in New Issue
Block a user