Skip to content

Show stale exchange rate warning in all 17 Toolify currency converter locales - #11

Merged
appdevelopsk merged 21 commits into
mainfrom
fix/currency-rate-staleness-20261025
Oct 25, 2026
Merged

appdevelopsk merged 21 commits into
mainfrom
fix/currency-rate-staleness-20261025

Conversation

@appdevelopsk

Copy link
Copy Markdown
Owner

Protect users if the daily FX API fetch fails open with outdated bundled reference rates. GitHub fallback site/src/data/rates.json is currently dated 2026-09-03, but this does not prove production rates are that old, because prebuild fetches fresh data. Component now renders a prominent translated alert when embedded rates are >=7 days old or malformed/future-dated, in all 17 locale variants. Added prebuild checker (npm run check:currency) validating reference rates, USD base, valid update date and 17 stale-warning strings. Normal prices/rates and formulas unchanged; no indexability edits. Validation: 17 JSON files parsed, all 17 date placeholders present, positive rate entries, Node test script syntax. Not executed: full Next build, published VPS smoke, actual rate API fetch.

@appdevelopsk
appdevelopsk merged commit 21511ed into main Oct 25, 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