| @@ -342,15 +342,23 @@ | ||
| 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 | - //will add script here/ skipping for now | |
| 355 | + /** | |
| 356 | + * Enqueue additional customer-dashboard assets — the hook an add-on | |
| 357 | + * uses to ship the JS backing a portal section it registers through | |
| 358 | + * `fluent_cart/customer_portal/profile_sections`. | |
| 359 | + */ | |
| 360 | + do_action('fluent_cart/customer_dashboard/enqueue_assets'); | |
| 353 | 361 | } |
| 354 | 362 | |
| 355 | 363 | public static function loadCartAssets() |
| 356 | 364 | { |