From 35384a4fe62151d9d631ec7be0c8a8c7df5d7da9 Mon Sep 17 00:00:00 2001 From: Ahmed Date: Tue, 7 Feb 2023 11:10:59 +0100 Subject: [PATCH 1/2] Fix decimal points for NOK --- plugins/woocommerce/i18n/locale-info.php | 4 ++-- .../tests/api-core-tests/tests/data/data-crud.test.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/woocommerce/i18n/locale-info.php b/plugins/woocommerce/i18n/locale-info.php index 919cd66999f..f07d2add31f 100644 --- a/plugins/woocommerce/i18n/locale-info.php +++ b/plugins/woocommerce/i18n/locale-info.php @@ -2656,7 +2656,7 @@ return array( 'currency_pos' => 'left_space', 'thousand_sep' => ' ', 'decimal_sep' => ',', - 'num_decimals' => 0, + 'num_decimals' => 2, 'weight_unit' => 'kg', 'dimension_unit' => 'cm', 'direction' => 'ltr', @@ -3200,7 +3200,7 @@ return array( 'currency_pos' => 'left_space', 'thousand_sep' => ' ', 'decimal_sep' => ',', - 'num_decimals' => 0, + 'num_decimals' => 2, 'weight_unit' => 'kg', 'dimension_unit' => 'cm', 'direction' => 'ltr', diff --git a/plugins/woocommerce/tests/api-core-tests/tests/data/data-crud.test.js b/plugins/woocommerce/tests/api-core-tests/tests/data/data-crud.test.js index b977c21fb13..53e530a575b 100644 --- a/plugins/woocommerce/tests/api-core-tests/tests/data/data-crud.test.js +++ b/plugins/woocommerce/tests/api-core-tests/tests/data/data-crud.test.js @@ -1903,7 +1903,7 @@ test.describe('Data API tests', () => { "currency_pos": "left_space", "decimal_sep": ",", "dimension_unit": "cm", - "num_decimals": 0, + "num_decimals": 2, "thousand_sep": " ", "weight_unit": "kg", "states": [] @@ -1999,7 +1999,7 @@ test.describe('Data API tests', () => { "currency_pos": "left_space", "decimal_sep": ",", "dimension_unit": "cm", - "num_decimals": 0, + "num_decimals": 2, "thousand_sep": " ", "weight_unit": "kg", "states": [] @@ -3542,7 +3542,7 @@ test.describe('Data API tests', () => { "currency_pos": "left_space", "decimal_sep": ",", "dimension_unit": "cm", - "num_decimals": 0, + "num_decimals": 2, "thousand_sep": " ", "weight_unit": "kg", "states": [] @@ -3638,7 +3638,7 @@ test.describe('Data API tests', () => { "currency_pos": "left_space", "decimal_sep": ",", "dimension_unit": "cm", - "num_decimals": 0, + "num_decimals": 2, "thousand_sep": " ", "weight_unit": "kg", "states": [] From dc616bd4c6d69505a4767d2cccf505ac1b09d623 Mon Sep 17 00:00:00 2001 From: Ahmed Date: Tue, 7 Feb 2023 11:14:40 +0100 Subject: [PATCH 2/2] update changelog --- plugins/woocommerce/changelog/fix-decimal-points-for-nok | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 plugins/woocommerce/changelog/fix-decimal-points-for-nok diff --git a/plugins/woocommerce/changelog/fix-decimal-points-for-nok b/plugins/woocommerce/changelog/fix-decimal-points-for-nok new file mode 100644 index 00000000000..69ebe08d54f --- /dev/null +++ b/plugins/woocommerce/changelog/fix-decimal-points-for-nok @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Fix decimal points for NOK currency