search and ai stabilization work, localization stablized.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
|
||||
using System.Reflection;
|
||||
using static StellaOps.Localization.T;
|
||||
|
||||
namespace StellaOps.Evidence.Validation;
|
||||
|
||||
@@ -13,13 +14,13 @@ internal static class SchemaLoader
|
||||
|
||||
if (resourceName is null)
|
||||
{
|
||||
throw new InvalidOperationException($"Schema resource not found: {fileName}");
|
||||
throw new InvalidOperationException(_t("common.evidence.schema_resource_not_found", fileName));
|
||||
}
|
||||
|
||||
using var stream = assembly.GetManifestResourceStream(resourceName);
|
||||
if (stream is null)
|
||||
{
|
||||
throw new InvalidOperationException($"Schema resource not available: {resourceName}");
|
||||
throw new InvalidOperationException(_t("common.evidence.schema_resource_not_available", resourceName));
|
||||
}
|
||||
|
||||
using var reader = new StreamReader(stream);
|
||||
|
||||
Reference in New Issue
Block a user