Skip to content

Commit

Permalink
Merge pull request #317 from NeoCoderMatrix86/303-validation-messages…
Browse files Browse the repository at this point in the history
…-are-not-relocalized-after-switching-language

Bugfix for localizing validation messages
  • Loading branch information
NeoCoderMatrix86 authored Mar 26, 2024
2 parents f1a839a + 5a1c54f commit 6d001ca
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions AudioCuesheetEditor/Pages/EditSplitpoints.razor
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ along with Foobar. If not, see
void LocalizationService_LocalizationChanged(object? sender, EventArgs args)
{
StateHasChanged();
validations?.ValidateAll();
}

Task AddSplitPointClicked()
Expand Down
1 change: 1 addition & 0 deletions AudioCuesheetEditor/Pages/ViewModeImport.razor
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,7 @@ along with Foobar. If not, see
StateHasChanged();
TimeSpanFormat.TextLocalizer = _localizer;
TextImportScheme.TextLocalizer = _localizer;
validations?.ValidateAll();
}

private void SessionStateContainer_ImportCuesheetChanged(object? sender, EventArgs args)
Expand Down
1 change: 1 addition & 0 deletions AudioCuesheetEditor/Shared/CuesheetData.razor
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ along with Foobar. If not, see
private void LocalizationService_LocalizationChanged(object? sender, EventArgs args)
{
StateHasChanged();
validations?.ValidateAll();
}

private void SessionStateContainer_CuesheetChanged(object? sender, EventArgs args)
Expand Down
1 change: 1 addition & 0 deletions AudioCuesheetEditor/Shared/TracksTable.razor
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ along with Foobar. If not, see
private void LocalizationService_LocalizationChanged(object? sender, EventArgs args)
{
StateHasChanged();
validations?.ValidateAll();
}

private MarkupString GetMarkupString(String? stringValue)
Expand Down

0 comments on commit 6d001ca

Please sign in to comment.