Fixed and guarded the I18N key collection against missing keys (#936)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-08-25 16:53:19 +02:00
1 parent 415ed35422
commit 99089f853e
11 files changed
+164 -34

No files matched your search

@@ -631,7 +631,7 @@ public partial class ProviderDialog : MSGComponentBase, ISecretId
}
catch (JsonException)
{
return T("Invalid JSON: Add the parameters in proper JSON formatting, e.g., \"temperature\": 0.5. Remove trailing commas. The usual surrounding curly brackets {} must not be used, though.");
return T("""Invalid JSON: Add the parameters in proper JSON formatting, e.g., "temperature": 0.5. Remove trailing commas. The usual surrounding curly brackets {} must not be used, though.""");
}
}
@@ -764,7 +764,7 @@ public partial class ProviderDialog : MSGComponentBase, ISecretId
if (objectStack.Count != 0)
{
errorMessage = T("Invalid JSON: Add the parameters in proper JSON formatting, e.g., \"temperature\": 0.5. Remove trailing commas. The usual surrounding curly brackets {} must not be used, though.");
errorMessage = T("""Invalid JSON: Add the parameters in proper JSON formatting, e.g., "temperature": 0.5. Remove trailing commas. The usual surrounding curly brackets {} must not be used, though.""");
return false;
}