fix: recognize yen in currency conversions

This commit is contained in:
2026-10-22 14:04:29 +02:00
parent 751f22f6b1
commit 0a85d21801
3 changed files with 19 additions and 0 deletions
+3
View File
@@ -100,6 +100,7 @@ sqrt(144)
32 f to c
1 GiB to MiB
100 USD to DKK
1000 yen to DKK
0.5 BTC to ETH
```
@@ -109,6 +110,8 @@ Convert length, mass, temperature, volume, duration, speed, area, and data with
Currency and crypto conversions require internet access and use [currency-api](https://github.com/fawazahmed0/exchange-api). These are **daily rates, not live market prices**; the snapshot date is shown with the answer. Treat them as estimates, not trading or payment quotes. Fetch failures show an error rather than silently using old rates; change the query to retry.
`yen` is accepted as an alias for `JPY` in either conversion direction, case-insensitively.
Rates are shared across queries and refreshed on the next currency query after the local day changes. While refreshing, a cached answer remains copyable and is labeled stale. Leaving the query or dismissing the launcher does not cancel that shared refresh.
`ConjureKit.CurrencyCalculation` owns this lifetime policy; the launcher renders its result. Its checks use an injected clock and scripted rate fetches.