@@ -27,6 +27,7 @@ type UpgradePurchaseDetailsProps = {
2727 productName : string ;
2828 webIcon : string ;
2929 } ;
30+ locale : string ;
3031} ;
3132
3233export function UpgradePurchaseDetails ( props : UpgradePurchaseDetailsProps ) {
@@ -37,6 +38,7 @@ export function UpgradePurchaseDetails(props: UpgradePurchaseDetailsProps) {
3738 invoice,
3839 l10n,
3940 purchaseDetails,
41+ locale
4042 } = props ;
4143 const { productName, subtitle, webIcon } = purchaseDetails ;
4244 const {
@@ -77,6 +79,7 @@ export function UpgradePurchaseDetails(props: UpgradePurchaseDetailsProps) {
7779 amount = { fromPrice . listAmount }
7880 currency = { fromPrice . currency }
7981 interval = { fromPrice . interval }
82+ locale = { locale }
8083 />
8184 { fromPurchaseDetails . subtitle && (
8285 < span >
@@ -112,6 +115,7 @@ export function UpgradePurchaseDetails(props: UpgradePurchaseDetailsProps) {
112115 amount = { listAmount }
113116 currency = { currency }
114117 interval = { interval }
118+ locale = { locale }
115119 />
116120 { subtitle && (
117121 < span >
@@ -138,7 +142,7 @@ export function UpgradePurchaseDetails(props: UpgradePurchaseDetailsProps) {
138142 `${ productName } (${ formatPlanInterval ( interval ) } )`
139143 ) }
140144 </ p >
141- < p > { l10n . getLocalizedCurrencyString ( listAmount , currency ) } </ p >
145+ < p > { l10n . getLocalizedCurrencyString ( listAmount , currency , locale ) } </ p >
142146 </ li >
143147 ) }
144148
@@ -151,7 +155,7 @@ export function UpgradePurchaseDetails(props: UpgradePurchaseDetailsProps) {
151155 ) }
152156 </ p >
153157 < p >
154- { l10n . getLocalizedCurrencyString ( - 1 * discountAmount , currency ) }
158+ { l10n . getLocalizedCurrencyString ( - 1 * discountAmount , currency , locale ) }
155159 </ p >
156160 </ li >
157161 ) }
@@ -167,7 +171,8 @@ export function UpgradePurchaseDetails(props: UpgradePurchaseDetailsProps) {
167171 < p >
168172 { l10n . getLocalizedCurrencyString (
169173 exclusiveTaxRates [ 0 ] . amount ,
170- currency
174+ currency ,
175+ locale
171176 ) }
172177 </ p >
173178 </ li >
@@ -183,7 +188,7 @@ export function UpgradePurchaseDetails(props: UpgradePurchaseDetailsProps) {
183188 >
184189 < p > { l10n . getString ( 'tax' , taxRate . title ) } </ p >
185190 < p >
186- { l10n . getLocalizedCurrencyString ( taxRate . amount , currency ) }
191+ { l10n . getLocalizedCurrencyString ( taxRate . amount , currency , locale ) }
187192 </ p >
188193 </ li >
189194 )
@@ -205,6 +210,7 @@ export function UpgradePurchaseDetails(props: UpgradePurchaseDetailsProps) {
205210 amount = { totalAmount }
206211 currency = { currency }
207212 interval = { interval }
213+ locale = { locale }
208214 />
209215 </ p >
210216 </ li >
@@ -224,7 +230,7 @@ export function UpgradePurchaseDetails(props: UpgradePurchaseDetailsProps) {
224230 className = "overflow-hidden text-ellipsis whitespace-nowrap"
225231 data-testid = "prorated-price"
226232 >
227- { l10n . getLocalizedCurrencyString ( oneTimeCharge , currency ) }
233+ { l10n . getLocalizedCurrencyString ( oneTimeCharge , currency , locale ) }
228234 </ p >
229235 </ div >
230236 </ >
0 commit comments