Skip to content

feat(i18n): localized message for a PDF that is too large to print - #80

Merged
buzz-code merged 1 commit into
mainfrom
claude/pdf-print-timeout-message
Nov 8, 2026
Merged

buzz-code merged 1 commit into
mainfrom
claude/pdf-print-timeout-message

Conversation

@buzz-code

Copy link
Copy Markdown
Owner

What

Pairs with buzz-code/nra-server#97: a PDF that is too large to print now answers 413 with code PDF_PRINT_TIMEOUT.

Change

PDF_PRINT_TIMEOUT is added to ERROR_CODE_TRANSLATION_KEYS (same mechanism as PDF_RENDER_BUSY) with Hebrew and English text under ra.notification.pdf_print_timeout: narrow the filter (e.g. a shorter date range) or download as Excel.

Without this change the user still sees the server's Hebrew fallback message, so the two PRs can merge in either order.

Tests

yarn jest utils/__tests__/httpUtil.test.js providers/__tests__/i18nProvider.test.js: code mapping and both locales.


Generated by Claude Code

The server now answers a PDF print timeout with 413 and code PDF_PRINT_TIMEOUT.
Map the code to a translation key like PDF_RENDER_BUSY, with Hebrew and English
text, so the user sees a localized "narrow the filter or use Excel" message.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012GTicqgTde92c75hERgg3v
@buzz-code
buzz-code merged commit e1f5a00 into main Nov 8, 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.

2 participants