This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

TranslationAuditOptions Pennington.TranslationAudit

Configuration for TranslationAuditor.

Properties

IncludedLocales HashSet<string>
Locale codes to include. When null, every non-default locale configured in LocalizationOptions is reported.
MissingSeverity DiagnosticSeverity
Severity for "translation file does not exist" diagnostics. Default Warning.
OutdatedSeverity DiagnosticSeverity
Severity for "translation predates source's last commit" diagnostics. Default Warning.
ReportMissing bool
When true (default), missing translations are reported. Set false to defer that signal to a different mechanism.
RepositoryPath string
Absolute path to the git repository root. When null, the repo is auto-discovered by walking up from the current directory until a .git folder is found.

Pennington.TranslationAudit.TranslationAuditOptions

namespace Pennington.TranslationAudit;

/// Configuration for TranslationAuditor.
public class TranslationAuditOptions
{
    /// Locale codes to include. When null, every non-default locale configured in LocalizationOptions is reported.
    
public HashSet<string> IncludedLocales { get; set; }
/// Severity for "translation file does not exist" diagnostics. Default Warning.
public DiagnosticSeverity MissingSeverity { get; set; }
/// Severity for "translation predates source's last commit" diagnostics. Default Warning.
public DiagnosticSeverity OutdatedSeverity { get; set; }
/// When true (default), missing translations are reported. Set false to defer that signal to a different mechanism.
public bool ReportMissing { get; set; }
/// Absolute path to the git repository root. When null, the repo is auto-discovered by walking up from the current directory until a .git folder is found.
public string RepositoryPath { get; set; }
}