-
Notifications
You must be signed in to change notification settings - Fork 0
Checks
Finds target locale values that are identical to the base locale.
Example:
{
"en": {
"home": {
"title": "Welcome back"
}
},
"zh": {
"home": {
"title": "Welcome back"
}
}
}This reports zh.home.title.
Ignored cases include:
- Matching
allowIdenticalKeys. - Matching
allowIdenticalValues. - Matching a categorized
doNotTranslaterule. These findings include category, reason, comment, and owner metadata. - Same language family targets such as
enanden-GB. - Blank values.
- External references.
- Placeholder-only values.
- Code-like values when
ignoreCodeLikeis enabled.
Compares placeholder sets between the base locale and target locales.
Example:
{
"en": {
"user": {
"greeting": "Hello {name}"
}
},
"zh": {
"user": {
"greeting": "你好"
}
}
}This reports:
missing placeholder: {name}Supported by default:
{name}{{ name }}-
%s,%d,%i,%f %(name)s
$1-style placeholders are not enabled by default because they are indistinguishable from currency. They can be
enabled explicitly with a custom placeholder pattern.
Scans source files for static user-visible strings.
Detected:
- Vue template text.
- Static Vue attributes.
- JSX/TSX text.
- Static JSX/TSX attributes.
- Static string arguments passed to configured JS/TS functions.
- Nested conditional and logical branches in configured call, assignment, and object-property sinks.
- Vue interpolation and bound-attribute expression strings.
- Interpolated templates as one normalized message, for example
`Delete ${key}?`becomesDelete {key}?.
Ignored:
- Whitespace-only text.
- Dynamic Vue bindings that do not contain extractable message strings.
- Runtime JSX expressions.
- Mustache-only values.
- Numbers, symbols, paths, URLs, hex colors, and short all-caps codes.
- Values matching
hardcoded.ignoreValuesorhardcoded.ignorePatterns.
| Severity | Meaning |
|---|---|
high |
Strong signal that translation or extraction is needed. |
medium |
Likely issue, often short labels or single words. |
low |
Possible issue requiring review. |
ignored |
Known safe or explicitly ignored. |
Hardcoded findings also include confidence (low, medium, or high) and a category. Severity controls failOn;
confidence estimates whether the value is user-visible natural language. Technical identifiers, UUIDs, versions,
protocol-like values, and content inside code-oriented elements receive lower confidence without hiding labels such as
SAVE, LOGIN, or ERROR.