| @@ -5,11 +5,11 @@ | ||
| 5 | 5 | fetchWithTimeout, |
| 6 | 6 | retryTwice, |
| 7 | 7 | setStatus, |
| 8 | 8 | } from '@auto-launch/functions/helpers'; |
| 9 | +import { launchStrings } from '@auto-launch/strings'; | |
| 9 | 10 | import { IMAGES_HOST } from '@constants'; |
| 10 | 11 | import { reqDataBasics } from '@shared/lib/data'; |
| 11 | -import { __ } from '@wordpress/i18n'; | |
| 12 | 12 | |
| 13 | 13 | const fallback = { siteImages: { hero: [], general: [] } }; |
| 14 | 14 | const url = `${IMAGES_HOST}/api/images`; |
| 15 | 15 | const { wpLanguage } = window.extSharedData; |
| @@ -24,9 +24,9 @@ | ||
| 24 | 24 | const asSections = (urls) => ({ hero: [], general: asImages(urls) }); |
| 25 | 25 | |
| 26 | 26 | export const handleSiteImages = async ({ siteProfile, designBuild }) => { |
| 27 | 27 | // translators: this is for a action log UI. Keep it short |
| 28 | - setStatus(__('Finding the perfect images', 'extendify-local')); | |
| 28 | + setStatus(launchStrings().statusImages); | |
| 29 | 29 | |
| 30 | 30 | // Reuse the design preview's own images; only search for what is missing. |
| 31 | 31 | const seeded = collectBuiltPageImageUrls(designBuild?.builtPages); |
| 32 | 32 | if (seeded.length >= MIN_POOL_SIZE) return { siteImages: asSections(seeded) }; |