Repository navigation
fix(i18n): localize remaining error and message surfaces - #371
Merged
Merged
Conversation
Sweep leftover user-facing English that PR #353 missed: the POS printer support-error card (heading, body, Get help/Dismiss, queued toast), the import success toast, the support submit toast, and the PrinterStatus lastError string. Raw English is kept only in telemetry payloads and detection logic, never rendered to the user. Generated with Codebuff 🤖 Co-Authored-By: Codebuff <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Localize the remaining raw English backend error/message surfaces that the earlier i18n sweep missed. The POS printer support-error card still showed the raw backend error plus hardcoded English (Printing failed / Get help / Dismiss), the import and support-submit success toasts showed raw backend messages, and PrinterStatus rendered the raw lastError string. Fix these to always show localized t() text in en/es/pt/fa while keeping raw English only in telemetry payloads and detection logic.
What Changed
Dismiss,Get help), and thePrinterStatuserror display using translation keys instead of raw backend strings.pos.printingFailed,settings.importSuccess,support.dismiss,support.getHelp) across English, Spanish, Persian, and Portuguese locales.Risk Assessment
✅ Low: The changes are low-risk string localizations across all supported locales (en, es, pt, fa) that preserve error telemetry and business logic.
Testing
Executed focused translation integrity checks, RTL dashboard/POS test suites, and end-to-end component rendering tests for POS printer error cards, PrinterStatus error displays, DB import success toasts, and support ticket toasts across en, es, pt, and fa, capturing 16 reviewer-visible visual screenshots and HTML artifacts into the evidence directory with all checks passing.
/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M08VG78CNJN3CHGY6B42Q05W/pos-printer-error-card-en.png)/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M08VG78CNJN3CHGY6B42Q05W/pos-printer-error-card-es.png)/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M08VG78CNJN3CHGY6B42Q05W/pos-printer-error-card-pt.png)/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M08VG78CNJN3CHGY6B42Q05W/pos-printer-error-card-fa.png)/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M08VG78CNJN3CHGY6B42Q05W/printer-status-dropdown-en.png)/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M08VG78CNJN3CHGY6B42Q05W/printer-status-dropdown-es.png)/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M08VG78CNJN3CHGY6B42Q05W/printer-status-dropdown-pt.png)/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M08VG78CNJN3CHGY6B42Q05W/printer-status-dropdown-fa.png)/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M08VG78CNJN3CHGY6B42Q05W/import-success-toast-en.png)/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M08VG78CNJN3CHGY6B42Q05W/import-success-toast-es.png)/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M08VG78CNJN3CHGY6B42Q05W/import-success-toast-pt.png)/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M08VG78CNJN3CHGY6B42Q05W/import-success-toast-fa.png)/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M08VG78CNJN3CHGY6B42Q05W/support-queued-toast-en.png)/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M08VG78CNJN3CHGY6B42Q05W/support-queued-toast-es.png)/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M08VG78CNJN3CHGY6B42Q05W/support-queued-toast-pt.png)/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M08VG78CNJN3CHGY6B42Q05W/support-queued-toast-fa.png)Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
tests/issue-241-localized-errors.test.ts- new test file written by agent: tests/issue-241-localized-errors.test.tsnpm run test:translationsnpm run test:rtl-dashboard-pos-commonnpm run test:rtl-setup-auth-settingsnpm run test:rtl-foundationts-node --transpile-only -P tests/tsconfig.json tests/issue-241-localized-errors.test.ts✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.