| @@ -342,12 +342,15 @@ | ||
| 342 | 342 | Vite::enqueueStyle('fluentcart-customer-css', |
| 343 | 343 | 'public/customer-profile/style/customer-profile.scss' |
| 344 | 344 | ); |
| 345 | 345 | |
| 346 | + // wp-i18n: this bundle pulls in the admin translator transitively | |
| 347 | + // (Start.js -> @/Bits/common.js -> @/utils/translator/Translator.js), | |
| 348 | + // which resolves strings through window.wp.i18n. | |
| 346 | 349 | Vite::enqueueScript( |
| 347 | 350 | 'fluentcart-customer-js', |
| 348 | 351 | 'public/customer-profile/Start.js', |
| 349 | - [] | |
| 352 | + ['wp-i18n'] | |
| 350 | 353 | )->with(CustomerProfileHandler::getLocalizationData()); |
| 351 | 354 | |
| 352 | 355 | /** |
| 353 | 356 | * Enqueue additional customer-dashboard assets — the hook an add-on |