From 5ac497ec8a59cab0326f14a1018901a01b6c52e5 Mon Sep 17 00:00:00 2001 From: Kreato Date: Tue, 2 Dec 2025 03:44:11 +0300 Subject: [PATCH 1/2] =?UTF-8?q?Add=20'TL'=20and=20'=E2=82=BA'=20as=20an=20?= =?UTF-8?q?alias=20to=20TRY?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/src/lib.rs | 1 + core/src/units/builtin.rs | 2 ++ 2 files changed, 3 insertions(+) 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..4df7748d 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", ""), + ("\u{20ba}", "\u{20ba}", "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] = &[ From 196da1bd898d070caadbae2524c310adb9dae7c3 Mon Sep 17 00:00:00 2001 From: Kreato Date: Tue, 2 Dec 2025 05:01:56 +0300 Subject: [PATCH 2/2] Update Turkish Lira symbol to fix build issue --- core/src/units/builtin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/units/builtin.rs b/core/src/units/builtin.rs index 4df7748d..eb09751e 100644 --- a/core/src/units/builtin.rs +++ b/core/src/units/builtin.rs @@ -776,7 +776,7 @@ 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", ""), - ("\u{20ba}", "\u{20ba}", "TRY", ""), // Turkish Lira symbol, see https://en.wikipedia.org/wiki/Turkish_lira + ("₺", "₺", "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 ];