You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
i18n(slm): the locale generator leaves some strings in English where the main app's translations disagree #20199
scripts/lift_locale_translations.py refuses a translation when the main app's copies of the same English string disagree below its majority threshold. So regenerating SLM locales left some strings in English, such as target in fr and others (reported from the review of merge train #20188), and "Overview" in de and es, and "Traces" in de and fr (PR #20077).
Fix
Settle the disagreeing main-app translations (a wrong or niche sense should use one word), then regenerate. Do not hand-edit SLM locale files. Measure the set from the generator's refusals first; the examples above are not the full list.
Acceptance criteria
The list of refused strings is measured and recorded.
Each is resolved in main-app locales, or left in English with a reason.
The SLM untranslated count drops by the measured amount, and a second generator run changes nothing.
Another case: agents.processMonitorTab.durationSeconds and durationMinutes (s, m) stay English in all SLM locales because scripts/lift_locale_translations.py has MIN_SOURCE_LENGTH = 4, so a one-letter unit never lifts. The main app has real values (min, ث, د and so on, PR for #19929). Short sources need a different route, such as a longer English source or an explicit SLM override the generator respects.
Verified against origin/main after the merge train (PR #20598) landed (#20420 is a member).
AC
Evidence
Refused strings measured and recorded
scripts/lift_locale_translations.py now has --refusals (refusal_reason, collect_refusals), which prints per-locale counts by reason short, no-source, no-translation, tie. The measured counts for ten locales (tie 1377 over 114 distinct strings, no-translation 3170) are in the body of PR #20420; they are not on this issue.
Each resolved in main-app locales, or left in English with a reason
NOT MET. Only "Overview" in de and es was settled (autobot-frontend/src/i18n/locales/de.json, es.json). 112 or more tie strings per locale still need decisions; short, no-source and no-translation classes are described in the PR but not recorded per string.
SLM untranslated count drops; a second run changes nothing
NOT MET. Count fell by 2 tie keys in de and es only (96 to 94, 114 to 112). repo_tests/lift_locale_refusals_20199_test.py has no second-run check.
Part landed: PR #21030 merged to main via merge train #21184 (merge commit 209d547): the SLM locale generator lifts mapped short strings from the main app. This PR referenced the issue (Refs), it did not close it; the issue is open and its remaining acceptance criteria are not claimed as delivered.
Branches issue-20199-locale-generator-refusals (PR #20420, head 5a584bf) and issue-20199-slm-locale-gen (PR #21030, head aecfd20) were deleted as zero-change branches: their content is already on main.
On main: scripts/lift_locale_translations.py now names why a key keeps English (refusal_reason, collect_refusals, KEY_MAPPINGS at :82-90), covered by repo_tests/lift_locale_refusals_20199_test.py, and "Overview" is settled in de/es. Still unticked: AC2 (the full measured set is not shown resolved or reasoned; "Traces" in de/fr and target in fr are not covered by the landed test) and AC3 (before/after untranslated count and a no-op second run are not evidenced).
Activity
mrveiss commentedon Oct 31, 2026
Another case:
agents.processMonitorTab.durationSecondsanddurationMinutes(s,m) stay English in all SLM locales becausescripts/lift_locale_translations.pyhasMIN_SOURCE_LENGTH = 4, so a one-letter unit never lifts. The main app has real values (min,ث,دand so on, PR for #19929). Short sources need a different route, such as a longer English source or an explicit SLM override the generator respects.github-actions commentedon Nov 2, 2026
Landed via the merge train (#20598, merge
87eae8acf8) via #20420mrveiss commentedon Nov 2, 2026
Verified against
origin/mainafter the merge train (PR #20598) landed (#20420 is a member).scripts/lift_locale_translations.pynow has--refusals(refusal_reason,collect_refusals), which prints per-locale counts by reasonshort,no-source,no-translation,tie. The measured counts for ten locales (tie 1377 over 114 distinct strings, no-translation 3170) are in the body of PR #20420; they are not on this issue.deandeswas settled (autobot-frontend/src/i18n/locales/de.json,es.json). 112 or more tie strings per locale still need decisions;short,no-sourceandno-translationclasses are described in the PR but not recorded per string.deandesonly (96 to 94, 114 to 112).repo_tests/lift_locale_refusals_20199_test.pyhas no second-run check.Stays open for AC 2 and AC 3.
mrveiss commentedon Nov 8, 2026
Closure check for merge train #21184 (merge commit 209d547, ancestor of
main; #21030 is aRefs, not aCloses).Issue stays open; no body change.
mrveiss commentedon Nov 8, 2026
Part landed: PR #21030 merged to main via merge train #21184 (merge commit 209d547): the SLM locale generator lifts mapped short strings from the main app. This PR referenced the issue (Refs), it did not close it; the issue is open and its remaining acceptance criteria are not claimed as delivered.
fix(i18n): SLM locale generator lifts short-unit strings through an e…
mrveiss commentedon Nov 20, 2026
Branches
issue-20199-locale-generator-refusals(PR #20420, head 5a584bf) andissue-20199-slm-locale-gen(PR #21030, head aecfd20) were deleted as zero-change branches: their content is already on main.On main:
scripts/lift_locale_translations.pynow names why a key keeps English (refusal_reason,collect_refusals,KEY_MAPPINGSat:82-90), covered byrepo_tests/lift_locale_refusals_20199_test.py, and "Overview" is settled in de/es. Still unticked: AC2 (the full measured set is not shown resolved or reasoned; "Traces" in de/fr andtargetin fr are not covered by the landed test) and AC3 (before/after untranslated count and a no-op second run are not evidenced).