diff --git a/App.razor b/App.razor index 81a7df9..69c13d7 100644 --- a/App.razor +++ b/App.razor @@ -1,12 +1,12 @@ - - + + @if (context.User.Identity?.IsAuthenticated != true) { - + } else { @@ -14,7 +14,7 @@ } - + Not found @@ -23,5 +23,5 @@ - - \ No newline at end of file + + \ No newline at end of file diff --git a/Components/ActionBar.razor b/Components/ActionBar.razor index 6ec7ff9..02d8b88 100644 --- a/Components/ActionBar.razor +++ b/Components/ActionBar.razor @@ -1,4 +1,6 @@ -
+@inherits LocalizableComponentBase + +
@if (isPosting) { @@ -22,7 +24,7 @@ ValueChanged="async v => await OnTimelineChange(v)" ValueExpression="() => Filters.TimelineType"> @foreach (var timelineType in Enum.GetValues()) { - + } @@ -39,7 +41,7 @@ ValueChanged="async v => await OnTimeSortChange(v)" ValueExpression="() => Filters.TimeSortingType"> @foreach (var timeSortingType in Enum.GetValues()) { - + } @@ -56,7 +58,7 @@ - @CascadingState.Localizer["Post"] + @Localizer["Post"] } diff --git a/Components/Content.razor b/Components/Content.razor index 1a10436..dfd284d 100644 --- a/Components/Content.razor +++ b/Components/Content.razor @@ -1,4 +1,6 @@ -
+@inherits LocalizableComponentBase + +
@@ -17,7 +19,7 @@

@Message.BoostingUser.DisplayName - @CascadingState.Localizer["boosted"] + @Localizer["boosted"]

}

@@ -31,10 +33,10 @@ - @Message.CreatedAt.GetPassedTime(CascadingState.Localizer) + @Message.CreatedAt.GetPassedTime(Localizer._pLocalizer)

@@ -105,7 +107,7 @@ @if (OnMessageReply.HasDelegate) {
} @@ -164,7 +166,7 @@ - @CascadingState.Localizer["Mute"] + @Localizer["Mute"]
} @@ -175,7 +177,7 @@ - @CascadingState.Localizer["Block"] + @Localizer["Block"]
} @@ -183,11 +185,11 @@ { } @@ -196,7 +198,7 @@ @if (IncludeExpand) { + title="@Localizer["Expand"]"> diff --git a/Components/LoadingData.razor b/Components/LoadingData.razor index daadcb4..81870a6 100644 --- a/Components/LoadingData.razor +++ b/Components/LoadingData.razor @@ -1,13 +1,10 @@ -

+@inherits LocalizableComponentBase +

. . . - @CascadingState.Localizer["loading"] + @Localizer["loading"] . . .

- -@code { - [CascadingParameter] CascadingState CascadingState { get; set; } -} \ No newline at end of file diff --git a/Components/MessageUpsertForm.razor b/Components/MessageUpsertForm.razor index 87e5e5e..374dc91 100644 --- a/Components/MessageUpsertForm.razor +++ b/Components/MessageUpsertForm.razor @@ -1,10 +1,12 @@ - +@inherits LocalizableComponentBase + +
@@ -12,7 +14,7 @@ + placeholder="@Localizer["oh shit... here we go again"]" rows="3"> @(MessageForm.Content?.Length ?? 0)/5000
@if (showPreviewButton && isPreviewOpen && MessageForm.Content is { Length: > 0 }) @@ -52,7 +54,7 @@ @media.FileName

- @media.ContentType @media.Size.GetFileSize(CascadingState.Localizer) + @media.ContentType @media.Size.GetFileSize(Localizer._pLocalizer)

- @CascadingState.Localizer["Login"] + @Localizer["Login"] diff --git a/Shared/NavMenu.razor b/Shared/NavMenu.razor index 136798e..f93415b 100644 --- a/Shared/NavMenu.razor +++ b/Shared/NavMenu.razor @@ -1,4 +1,6 @@ -