| @@ -1,11 +1,12 @@ | ||
| 1 | 1 | import { importImage, updateOption } from '@auto-launch/functions/wp'; |
| 2 | +import { launchStrings } from '@auto-launch/strings'; | |
| 2 | 3 | import { PATTERNS_HOST } from '@constants'; |
| 3 | 4 | import { reqDataBasics } from '@shared/lib/data'; |
| 4 | 5 | import { pageNames } from '@shared/lib/pages'; |
| 5 | 6 | import apiFetch from '@wordpress/api-fetch'; |
| 6 | 7 | import { createBlock, parse, serialize } from '@wordpress/blocks'; |
| 7 | -import { __, sprintf } from '@wordpress/i18n'; | |
| 8 | +import { __ } from '@wordpress/i18n'; | |
| 8 | 9 | import { setStatus } from './helpers'; |
| 9 | 10 | |
| 10 | 11 | // Slugs that plugins own — skip creating design-build pages for these. |
| 11 | 12 | export const PLUGIN_OWNED_PAGES = [ |
| @@ -142,9 +143,9 @@ | ||
| 142 | 143 | for (const page of pagesRaw) { |
| 143 | 144 | const content = []; |
| 144 | 145 | const seenPatternTypes = new Set(); |
| 145 | 146 | |
| 146 | - setStatus(sprintf(__('Adding page: %s', 'extendify-local'), page.name)); | |
| 147 | + setStatus(launchStrings().statusAddingPage(page.name)); | |
| 147 | 148 | |
| 148 | 149 | for (const [_, pattern] of page.patterns.entries()) { |
| 149 | 150 | const code = pattern.code; |
| 150 | 151 | const slug = sectionSlug(pattern); |