-
Notifications
You must be signed in to change notification settings - Fork 0
TypeScript API
Yuki edited this page Jul 13, 2026
·
2 revisions
The package publishes declaration files and exports a small public API from the package root.
import { checkIdenticalTranslations, severityRank } from 'i18n-smell-detector';
import type { CheckResult, DetectorConfigInput, DetectorIssue } from 'i18n-smell-detector';Useful public types include:
DetectorConfigInputDetectorConfigDetectorIssueIdenticalIssuePlaceholderIssueHardcodedIssueCheckResultReportFormatSeverityConfidenceHardcodedCategoryDoNotTranslateRuleIssueSuppressionMessageInterpolationSourcePositionSourceRange
Prefer consuming the public package root instead of importing internal files.
Use CLI JSON output when your integration only needs results:
npx i18n-smell-detector check --format json --fail-on noneUse the TypeScript API when your integration needs to call a specific checker or share detector types.
The issue shape is intended to stay stable enough for reports, baselines, and editor integrations.