PluginProbe
Extendify / trunk
Extendify vtrunk
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
← All changes | src/AutoLaunch/fetchers/get-images.js +2 -2 3.1.5 → trunk View file →
@@ -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) };