From 04adce166eb88449c691be5fa98c7ca55224b0f6 Mon Sep 17 00:00:00 2001 From: Julian Engel Date: Fri, 29 Aug 2025 14:07:01 +0200 Subject: [PATCH] =?UTF-8?q?PR:=20add=20PLN=20(Polish=20Z=C5=82oty)=20numbe?= =?UTF-8?q?r=20format=20support?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add PLN = 37 to NumberFormatPB enum in Rust - Add conversion mappings between NumberFormat::PLN and NumberFormatPB::PLN - Add "Polish złoty" title and "zł" symbol in Flutter UI Note: This requires corresponding NumberFormat::PLN to be added in the collab-database dependency (AppFlowy-Collab repository). --- .../application/field/type_option/number_format_bloc.dart | 4 ++++ .../src/entities/type_option_entities/number_entities.rs | 3 +++ 2 files changed, 7 insertions(+) diff --git a/frontend/appflowy_flutter/lib/plugins/database/application/field/type_option/number_format_bloc.dart b/frontend/appflowy_flutter/lib/plugins/database/application/field/type_option/number_format_bloc.dart index c4c31b880e6b5..f7c21cdfa7038 100644 --- a/frontend/appflowy_flutter/lib/plugins/database/application/field/type_option/number_format_bloc.dart +++ b/frontend/appflowy_flutter/lib/plugins/database/application/field/type_option/number_format_bloc.dart @@ -95,6 +95,8 @@ extension NumberFormatExtension on NumberFormatPB { return "Percent"; case NumberFormatPB.PhilippinePeso: return "Philippine peso"; + case NumberFormatPB.PLN: + return "Polish złoty"; case NumberFormatPB.Pound: return "Pound"; case NumberFormatPB.Rand: @@ -174,6 +176,8 @@ extension NumberFormatExtension on NumberFormatPB { return "%"; case NumberFormatPB.PhilippinePeso: return "₱"; + case NumberFormatPB.PLN: + return "zł"; case NumberFormatPB.Pound: return "£"; case NumberFormatPB.Rand: diff --git a/frontend/rust-lib/flowy-database2/src/entities/type_option_entities/number_entities.rs b/frontend/rust-lib/flowy-database2/src/entities/type_option_entities/number_entities.rs index bb34178cd7844..4c506b23768a7 100644 --- a/frontend/rust-lib/flowy-database2/src/entities/type_option_entities/number_entities.rs +++ b/frontend/rust-lib/flowy-database2/src/entities/type_option_entities/number_entities.rs @@ -78,6 +78,7 @@ pub enum NumberFormatPB { ArgentinePeso = 34, UruguayanPeso = 35, Percent = 36, + PLN = 37, } impl From for NumberFormatPB { @@ -119,6 +120,7 @@ impl From for NumberFormatPB { NumberFormat::ArgentinePeso => NumberFormatPB::ArgentinePeso, NumberFormat::UruguayanPeso => NumberFormatPB::UruguayanPeso, NumberFormat::Percent => NumberFormatPB::Percent, + NumberFormat::PLN => NumberFormatPB::PLN, } } } @@ -162,6 +164,7 @@ impl From for NumberFormat { NumberFormatPB::ArgentinePeso => NumberFormat::ArgentinePeso, NumberFormatPB::UruguayanPeso => NumberFormat::UruguayanPeso, NumberFormatPB::Percent => NumberFormat::Percent, + NumberFormatPB::PLN => NumberFormat::PLN, } } }