PluginProbe
Extendify / 3.2.1
Extendify v3.2.1
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
extendify / src / AutoLaunch / strings.js

strings.js in Extendify 3.2.1, at src/AutoLaunch/strings.js

133 lines 5.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { __, sprintf } from '@wordpress/i18n';
2
3 // A partner names anything; two shipped entries are functions a string would break.
4 const partnerOverrides = (shipped) =>
5 Object.fromEntries(
6 Object.entries(window.extLaunchData?.partnerStrings ?? {}).filter(
7 ([key, value]) => value && typeof shipped[key] === 'string',
8 ),
9 );
10
11 /**
12 * A function, not an object: `__` at module scope runs before WordPress has
13 * registered the locale data, and the strings come back in English.
14 */
15 export const launchStrings = () => {
16 const shipped = {
17 heading: __('Describe the website you want to build', 'extendify-local'),
18 titleLabel: __('Website title (required)', 'extendify-local'),
19 titlePlaceholder: __('Enter your website name', 'extendify-local'),
20 descriptionLabel: __('Describe your website', 'extendify-local'),
21 // translators: "Enhance with AI" refers to improving the current input using AI.
22 enhance: __('Enhance with AI', 'extendify-local'),
23 updating: __('Updating your site', 'extendify-local'),
24 updatingNote: __(
25 "We're installing the latest updates. Please don't close this window — it will only take a moment.",
26 'extendify-local',
27 ),
28 stalled: __('We are experiencing some delays', 'extendify-local'),
29 stalledNote: __('Pausing for a few seconds', 'extendify-local'),
30 documentTitle: __('Launch - AI-Powered Web Creation', 'extendify-local'),
31 exitLink: __('WP Admin Dashboard', 'extendify-local'),
32 back: __('Back', 'extendify-local'),
33 submit: __('Next', 'extendify-local'),
34 submitAlternate: __('Create website', 'extendify-local'),
35 placeholder: __(
36 'E.g., A personal photography portfolio featuring a collection of landscape, portrait, and street photography, capturing moments from around the world.',
37 'extendify-local',
38 ),
39 placeholderAlternate: __(
40 'E.g., A boutique law firm specializing in family law, estate planning, and real estate, offering trusted, personalized counsel to clients across the region.',
41 'extendify-local',
42 ),
43 reviewing: __('Reviewing your description...', 'extendify-local'),
44 enhancing: __('Enhancing the website description...', 'extendify-local'),
45 needsThemeTitle: __('One more thing before we start.', 'extendify-local'),
46 needsThemeBody: __(
47 'Launch requires the Extendable theme to work. You can install it from the link below and start over once activated.',
48 'extendify-local',
49 ),
50 needsThemeAction: __('Take me there', 'extendify-local'),
51 restartTitle: __('Start Over?', 'extendify-local'),
52 restartBody: __(
53 'It looks like you have been here before. We need to clean up some things before we can continue.',
54 'extendify-local',
55 ),
56 restartNote: (count) =>
57 sprintf(
58 // translators: %s is the number of old pages
59 __('%s pages/posts will be deleted.', 'extendify-local'),
60 count,
61 ),
62 restartExit: __('Exit', 'extendify-local'),
63 restartConfirm: __('Delete and start over', 'extendify-local'),
64 migrateTitle: __(
65 'How would you like to start your website?',
66 'extendify-local',
67 ),
68 migrateHeading: __('Move a site you already have', 'extendify-local'),
69 migrateBody: __('Import an existing WordPress website', 'extendify-local'),
70 migrateAction: __('Migrate website', 'extendify-local'),
71 buildHeading: __('Create a brand new site', 'extendify-local'),
72 buildBody: __(
73 'Create a beautiful website in about a minute',
74 'extendify-local',
75 ),
76 buildAction: __('Build a new website', 'extendify-local'),
77 buildBadge: __('Most Popular', 'extendify-local'),
78 migrationSearch: __('migration', 'extendify-local'),
79 connectorTitle: __('How would you like to build this?', 'extendify-local'),
80 connectorBody: __(
81 'Based on what you described, your site may need some advanced functionality.',
82 'extendify-local',
83 ),
84 wordpressHeading: __('Keep building with WordPress', 'extendify-local'),
85 wordpressBody: __(
86 'Great for business sites, e-commerces, landing pages, portfolios, and blogs.',
87 'extendify-local',
88 ),
89 wordpressAction: __('Build with WordPress', 'extendify-local'),
90 connectorBadge: __('Recommended for you', 'extendify-local'),
91 statusBooting: __('Booting things up', 'extendify-local'),
92 statusProfile: __('Creating a site profile', 'extendify-local'),
93 statusStyle: __('Picking the perfect design', 'extendify-local'),
94 statusDesign: __('Loading your design', 'extendify-local'),
95 statusIdeas: __('Generating site content ideas', 'extendify-local'),
96 statusImages: __('Finding the perfect images', 'extendify-local'),
97 statusLogo: __('Generating a logo', 'extendify-local'),
98 statusHome: __('Preparing your home page', 'extendify-local'),
99 statusPages: __('Preparing your pages', 'extendify-local'),
100 statusPlugins: __('Setting up site functionality', 'extendify-local'),
101 statusFunctionality: __(
102 'Setting up functionality for your website',
103 'extendify-local',
104 ),
105 statusAdmin: __('Adding admin configurations', 'extendify-local'),
106 statusFonts: __('Installing fonts locally', 'extendify-local'),
107 statusSiteStyle: __('Setting the website style', 'extendify-local'),
108 statusNavigation: __('Working on the navigation', 'extendify-local'),
109 statusLanding: __('Perfecting a landing page', 'extendify-local'),
110 statusCreatingPages: __('Creating pages', 'extendify-local'),
111 statusBlog: __('Creating blog sample data', 'extendify-local'),
112 statusStore: __('Setting up your online store', 'extendify-local'),
113 statusDone: __('All done!', 'extendify-local'),
114 statusAddingPage: (name) =>
115 // translators: %s is the name of the page being added
116 sprintf(__('Adding page: %s', 'extendify-local'), name),
117 errorUnstable: __(
118 'The network seems unstable. Retrying...',
119 'extendify-local',
120 ),
121 errorStep: __(
122 'Having some trouble with this step. Trying again...',
123 'extendify-local',
124 ),
125 errorFinalSteps: __(
126 'Something went wrong during the final steps. We will try again but you may need to refresh the page.',
127 'extendify-local',
128 ),
129 };
130
131 return { ...shipped, ...partnerOverrides(shipped) };
132 };
133