8000 B1.5: guard against literals outside the locale files by ahmadmhmdsy · Pull Request #23 · ahmadmhmdsy/localpdf-studio · GitHub
[go: up one dir, main page]

Skip to content

B1.5: guard against literals outside the locale files - #23

Merged
ahmadmhmdsy merged 2 commits into
mainfrom
phase-b/b1-5-guard
Oct 30, 2026
Merged

ahmadmhmdsy merged 2 commits into
mainfrom
phase-b/b1-5-guard

Conversation

@ahmadmhmdsy
Copy link
Copy Markdown
Owner

Summary

B1.5 literal guard: src/i18n/literals.test.ts fails on visible text outside the locale files (JSX text, user-facing attributes, message and label fields). It uses the TypeScript compiler API, already a dev dependency, so no new package.

The strings it found moved to the catalogs. The properties heading no longer shows "null Settings" when no tool is active.

Stacked on #22, so merge that first. The Arabic copy review stays WAITING FOR OWNER.

Validation

  • PASS typecheck
  • PASS lint (0 errors, 118 existing warnings)
  • PASS unit tests with coverage (1006)
  • PASS build
  • PASS check:bundle
  • SKIPPED test:e2e and test:lhci locally (run in CI)

🤖 Generated with Claude Code

ahmadmhmdsy and others added 2 commits October 30, 2026 21:01
Show the support, limitation and data-handling sentences in Arabic on
the availability gate, the data-handling notice and the Limitations
page. English stays in the registry, which is the release record, and
Arabic lives in locales/registry.ar.ts. Release state and privacy class
are still read only from the registry.

Tests cover every tool, the same figures as the English record, no
blanket local-only promise in Arabic, and unchanged English output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add src/i18n/literals.test.ts, which fails on visible text in JSX, on
user-facing attributes, and on message and label fields. Move the strings
it found to the catalogs: file-size labels, editor load errors, sidebar,
crop box, canvas status and the properties heading, which also stops
showing "null Settings" when no tool is active.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ahmadmhmdsy
ahmadmhmdsy merged commit e6bf058 into main Oct 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0