PluginProbe
AI Builder – Generate pages, blocks, images & translate with AI / 2.7.10
AI Builder – Generate pages, blocks, images & translate with AI v2.7.10
2.8.0 2.7.10 2.7.9 2.7.8 2.0.8 2.0.9 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.3.0 All 123 releases
← All changes | assets/js/translation.js +5 -4 2.1.6 → 2.7.10 View file →
@@ -29,11 +29,11 @@
29 29 <div class="aibui-form-group">
30 30 <label for="aibui-target-lang">Target Language:</label>
31 31 <select id="aibui-target-lang" class="aibui-select">
32 32 <option value="">-- Select Language --</option>
33 - ${Object.entries(aibuiTranslation.languages).map(([code, name]) =>
34 - `<option value="${code}">${name}</option>`
35 - ).join('')}
33 + ${Object.entries(aibuiTranslation.languages).map(([code, name]) =>
34 + `<option value="${code}">${name}</option>`
35 + ).join('')}
36 36 </select>
37 37 </div>
38 38 <div class="aibui-modal-message" id="aibui-modal-message" style="display: none;"></div>
39 39 </div>
@@ -138,8 +138,9 @@
138 138 // Make AJAX request
139 139 $.ajax({
140 140 url: aibuiTranslation.ajaxurl,
141 141 type: 'POST',
142 + timeout: 180000, // 5 minutes - AI translation can take longer for large pages
142 143 data: {
143 144 action: 'aibui_translate_post',
144 145 nonce: aibuiTranslation.nonce,
145 146 post_id: postId,
@@ -147,9 +148,9 @@
147 148 },
148 149 success: function (response) {
149 150 if (response.success) {
150 151 showMessage('Translation created successfully! Redirecting...', 'success');
151 -
152 +
152 153 // Redirect to edit page after short delay
153 154 setTimeout(() => {
154 155 if (response.data && response.data.edit_url) {
155 156 window.location.href = response.data.edit_url;