TranslationAuditOptions
Pennington.TranslationAudit
Configuration for TranslationAuditor.
Properties
IncludedLocalesHashSet<string>- Locale codes to include. When null, every non-default locale configured in
LocalizationOptionsis reported. MissingSeverityDiagnosticSeverity- Severity for "translation file does not exist" diagnostics. Default
Warning. OutdatedSeverityDiagnosticSeverity- Severity for "translation predates source's last commit" diagnostics. Default
Warning. ReportMissingbool- When true (default), missing translations are reported. Set false to defer that signal to a different mechanism.
RepositoryPathstring- Absolute path to the git repository root. When null, the repo is auto-discovered by walking up from the current directory until a
.gitfolder 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; }
}