Add a supplementary rate feed for currencies the ECB lacks (e.g. ALL)

The server also fetches ExchangeRate-API's free EUR-based endpoint
(RATES_EXTRA_URL, empty = off), stored apart from ECB rates; ECB always wins
for a currency both publish. /api/rates returns sources for supplementary
rates, expenses record them as xr:<date>, and the editor shows the required
attribution link. Snapshots older than a week before the requested date are
not used.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gVKYyo9BHLHPW4qr4x
This commit is contained in:
agent 2026-11-06 18:13:31 +00:00
parent 6b0c80bb50
commit 62c19192a7
13 changed files with 160 additions and 27 deletions

View file

@ -101,6 +101,9 @@ const cs: Messages = {
rate: 'Směnný kurz',
rate_source_ecb: 'Kurz ECB ze dne {date}',
rate_source_manual: 'Zadáno ručně',
rate_source_xr: 'Kurz od Exchange Rate API ze dne {date}',
currencies_rated: 'Denní kurz',
currencies_manual: 'Kurz zadáte ručně',
rate_unavailable: 'Pro tuto měnu není kurz k dispozici, zadejte ho prosím.',
paid_by_label: 'Platil(a)',
multiple_payers: 'Platilo více lidí',