diff --git a/core/src/lib.rs b/core/src/lib.rs index 66a0bef3..e77d4731 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -787,6 +787,7 @@ pub mod test_utils { "AUD" => 1.3, "PLN" => 0.2, "JPY" => 149.9, + "TRY" => 0.03, _ => panic!("unknown currency {currency}"), }) } diff --git a/core/src/units/builtin.rs b/core/src/units/builtin.rs index bead89f3..eb09751e 100644 --- a/core/src/units/builtin.rs +++ b/core/src/units/builtin.rs @@ -776,6 +776,8 @@ const CURRENCIES: &[UnitTuple] = &[ ("NZ$", "NZ$", "NZD", ""), ("zł", "zł", "PLN", ""), // the local abbreviation for PLN, see https://en.wikipedia.org/wiki/Polish_z%C5%82oty ("zl", "zl", "PLN", ""), + ("₺", "₺", "TRY", ""), // Turkish Lira symbol, see https://en.wikipedia.org/wiki/Turkish_lira + ("TL", "TL", "TRY", ""), // Turkish Lira abbreviation, see https://en.wikipedia.org/wiki/Turkish_lira ]; const HISTORICAL_UNITS: &[UnitTuple] = &[