Commit b419d39a00 for woocommerce

commit b419d39a0064d78f5fd8adb21b1ad6e6a6612a80
Author: Rafael Meneses <meneses.tio@gmail.com>
Date:   Tue Dec 16 17:30:24 2025 -0300

    Add automatic currency transition from BGN to EUR for Bulgaria (#62317)

    * bgn transitions to eur

    * Add changefile(s) from automation for the following project(s): woocommerce

    ---------

    Co-authored-by: github-actions <github-actions@github.com>
    Co-authored-by: Francesco <frosso@users.noreply.github.com>

diff --git a/plugins/woocommerce/changelog/62317-bgn-transitions-eur b/plugins/woocommerce/changelog/62317-bgn-transitions-eur
new file mode 100644
index 0000000000..4109276605
--- /dev/null
+++ b/plugins/woocommerce/changelog/62317-bgn-transitions-eur
@@ -0,0 +1,4 @@
+Significance: minor
+Type: update
+
+Add automatic currency transition from BGN to EUR for Bulgaria effective January 1, 2026
\ No newline at end of file
diff --git a/plugins/woocommerce/i18n/locale-info.php b/plugins/woocommerce/i18n/locale-info.php
index cbfc13d1f4..c505ae9fa8 100644
--- a/plugins/woocommerce/i18n/locale-info.php
+++ b/plugins/woocommerce/i18n/locale-info.php
@@ -10,6 +10,24 @@ defined( 'ABSPATH' ) || exit;

 $locales = include 'currency-info.php';

+// Bulgaria transitions from BGN to EUR on 2026-01-01 00:00:00 UTC.
+$bg_uses_euro = ( time() >= strtotime( '2026-01-01 00:00:00 UTC' ) );
+$bg_currency  = $bg_uses_euro ? array(
+	'currency_code' => 'EUR',
+	'name'          => 'Euro',
+	'singular'      => 'euro',
+	'plural'        => 'euros',
+	'short_symbol'  => '€',
+	'locales'       => $locales['EUR'],
+) : array(
+	'currency_code' => 'BGN',
+	'name'          => 'Bulgarian lev',
+	'singular'      => 'Bulgarian lev',
+	'plural'        => 'Bulgarian leva',
+	'short_symbol'  => null,
+	'locales'       => $locales['BGN'],
+);
+
 return array(
 	'AD' => array(
 		'currency_code'  => 'EUR',
@@ -331,21 +349,18 @@ return array(
 		'short_symbol'   => null,
 		'locales'        => $locales['XOF'],
 	),
-	'BG' => array(
-		'currency_code'  => 'BGN',
-		'currency_pos'   => 'right_space',
-		'thousand_sep'   => ' ',
-		'decimal_sep'    => ',',
-		'num_decimals'   => 2,
-		'weight_unit'    => 'kg',
-		'dimension_unit' => 'cm',
-		'direction'      => 'ltr',
-		'default_locale' => 'bg_BG',
-		'name'           => 'Bulgarian lev',
-		'singular'       => 'Bulgarian lev',
-		'plural'         => 'Bulgarian leva',
-		'short_symbol'   => null,
-		'locales'        => $locales['BGN'],
+	'BG' => array_merge(
+		array(
+			'currency_pos'   => 'right_space',
+			'thousand_sep'   => ' ',
+			'decimal_sep'    => ',',
+			'num_decimals'   => 2,
+			'weight_unit'    => 'kg',
+			'dimension_unit' => 'cm',
+			'direction'      => 'ltr',
+			'default_locale' => 'bg_BG',
+		),
+		$bg_currency
 	),
 	'BH' => array(
 		'currency_code'  => 'BHD',