diff --git a/client/components/open/forms/OpenCompleteForm.vue b/client/components/open/forms/OpenCompleteForm.vue index d3bd2421..a4c4b5f4 100644 --- a/client/components/open/forms/OpenCompleteForm.vue +++ b/client/components/open/forms/OpenCompleteForm.vue @@ -274,7 +274,11 @@ export default { watch: { 'form.language': { handler(newLanguage) { - this.setLocale(newLanguage) + if (newLanguage && typeof newLanguage === 'string') { + this.setLocale(newLanguage) + } else { + this.setLocale('en') // Default to English if invalid locale + } }, immediate: true } diff --git a/client/components/open/forms/components/AIFormLoadingMessages.vue b/client/components/open/forms/components/AIFormLoadingMessages.vue new file mode 100644 index 00000000..ce0e9f17 --- /dev/null +++ b/client/components/open/forms/components/AIFormLoadingMessages.vue @@ -0,0 +1,97 @@ + + + + + \ No newline at end of file diff --git a/client/components/pages/forms/create/CreateFormBaseModal.vue b/client/components/pages/forms/create/CreateFormBaseModal.vue index 9f2fba8c..7bd15e8a 100644 --- a/client/components/pages/forms/create/CreateFormBaseModal.vue +++ b/client/components/pages/forms/create/CreateFormBaseModal.vue @@ -151,8 +151,14 @@ help="Give us a description of the form you want to build (the more details the better)" placeholder="A simple contact form, with a name, email and message field" /> +
+ +
@@ -166,7 +172,12 @@