search and ai stabilization work, localization stablized.

This commit is contained in:
master
2026-02-24 23:29:36 +02:00
parent 4f947a8b61
commit b07d27772e
766 changed files with 55299 additions and 3221 deletions

View File

@@ -9,6 +9,7 @@ using System.Collections.Immutable;
using System.Security.Cryptography;
using System.Text;
using System.Text.Json;
using static StellaOps.Localization.T;
namespace StellaOps.Evidence.Pack;
@@ -157,7 +158,7 @@ internal sealed class EvidenceResolver : IEvidenceResolver
// Expected format: stella://type/path
if (!uri.StartsWith("stella://", StringComparison.OrdinalIgnoreCase))
{
throw new ArgumentException($"Invalid evidence URI format: {uri}. Expected stella://type/path");
throw new ArgumentException(_t("common.evidence.invalid_uri_format", uri));
}
var withoutScheme = uri[9..]; // Remove "stella://"
@@ -165,7 +166,7 @@ internal sealed class EvidenceResolver : IEvidenceResolver
if (slashIndex <= 0)
{
throw new ArgumentException($"Invalid evidence URI format: {uri}. Missing path.");
throw new ArgumentException(_t("common.evidence.invalid_uri_missing_path", uri));
}
var type = withoutScheme[..slashIndex];