Skip to content

Fix Arabic countdown rendering regression in embeddable banner#166

Merged
marcprux merged 3 commits intokeepandroidopen:mainfrom
ibs-allaow:main
Mar 2, 2026
Merged

Fix Arabic countdown rendering regression in embeddable banner#166
marcprux merged 3 commits intokeepandroidopen:mainfrom
ibs-allaow:main

Conversation

@ibs-allaow
Copy link
Contributor

@ibs-allaow ibs-allaow commented Feb 27, 2026

NOTE: I CREATED THIS PR USING OPENAI'S CODEX BECAUSE I'M A BEGINNER IN PROGRAMMING.

Summary
This PR addresses a regression introduced in the countdown localization refactor for the embeddable banner script.

Problem
After switching countdown unit rendering to Intl.NumberFormat unit formatting, Arabic users reported incorrect countdown behavior (appearing to loop/reset every hour instead of progressing normally). The issue manifests specifically in Arabic locale rendering and unit composition in the banner countdown output.

Scope
Revisit the recent countdown localization changes in public/banner.js.

Ensure Arabic countdown output is stable, monotonic, and consistent with English behavior.

Keep localization support intact for all supported locales.

Acceptance Criteria
Arabic countdown decrements correctly across seconds/minutes/hours/days without reset-like behavior.

English countdown remains unchanged and correct.

No regressions in embeddable banner parameters (lang, size, id, link, hidebutton).

Validation
Manual verification on /ar/ and / (English) pages.

Confirm countdown continuity over multiple minute/hour boundaries.

Confirm no functional changes to banner injection, dismissal, or timer lifecycle.

Notes
This PR is focused only on countdown rendering correctness and does not alter the broader banner UX/API.

Attached is a screenshot showing the timer correctly synchronized with the September 2026 deadline in the Arabic locale:

ar-countdown-fix

@marcprux marcprux merged commit 7ce66f5 into keepandroidopen:main Mar 2, 2026
2 checks passed
@marcprux marcprux mentioned this pull request Mar 2, 2026
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