From c927a235f85a89dc259e25c0cec7d21348a9f4de Mon Sep 17 00:00:00 2001 From: Chirag Chhatrala <60499540+chiragchhatrala@users.noreply.github.com> Date: Mon, 2 Dec 2024 15:25:09 +0530 Subject: [PATCH 1/2] fix subscription success page (#636) * fix subscription success page * Fix typo --- .../components/open/forms/components/FormEditorErrorHandler.vue | 2 +- client/pages/home.vue | 2 +- client/pages/subscriptions/success.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/components/open/forms/components/FormEditorErrorHandler.vue b/client/components/open/forms/components/FormEditorErrorHandler.vue index 42c969f0..ab09bae5 100644 --- a/client/components/open/forms/components/FormEditorErrorHandler.vue +++ b/client/components/open/forms/components/FormEditorErrorHandler.vue @@ -69,7 +69,7 @@ errorReport += ` And here are technical details about the error: \`\`\`${error.stack}\`\`\`` try { crisp.openAndShowChat(errorReport) - crisp.showMessage(`Hi there, we're very sorry to hear you experienced an issue with NoteForms. + crisp.showMessage(`Hi there, we're very sorry to hear you experienced an issue with OpnForm. We'll be in touch about it very soon! In the meantime, I recommend that you try going back one step, and save your changes.`, 2000) } catch (e) { console.error('Crisp error', e) diff --git a/client/pages/home.vue b/client/pages/home.vue index c8425a42..f0686d16 100644 --- a/client/pages/home.vue +++ b/client/pages/home.vue @@ -199,7 +199,7 @@ diff --git a/client/components/forms/FileInput.vue b/client/components/forms/FileInput.vue index d7e6316d..e97d809b 100644 --- a/client/components/forms/FileInput.vue +++ b/client/components/forms/FileInput.vue @@ -50,7 +50,7 @@ >

- Uploading your file... + {{ $t('forms.fileInput.uploadingFile') }}

diff --git a/client/components/forms/FlatSelectInput.vue b/client/components/forms/FlatSelectInput.vue index 5f31962f..83e32839 100644 --- a/client/components/forms/FlatSelectInput.vue +++ b/client/components/forms/FlatSelectInput.vue @@ -74,7 +74,7 @@ '!text-gray-500 !cursor-not-allowed' ]" > - No options available. + {{ $t('forms.select.noOptionAvailable') }} diff --git a/client/components/forms/SignatureInput.vue b/client/components/forms/SignatureInput.vue index b12baec8..7d4578dd 100644 --- a/client/components/forms/SignatureInput.vue +++ b/client/components/forms/SignatureInput.vue @@ -25,7 +25,7 @@ >

- Uploading your file... + {{ $t('forms.fileInput.uploadingFile') }}

@@ -76,7 +76,7 @@ :class="theme.default.help" href="#" @click.prevent="openFileUpload" - >Upload file instead + >{{ $t('forms.signatureInput.uploadFileInstead') }} @@ -84,7 +84,7 @@ :class="theme.default.help" href="#" @click.prevent="clear" - >Clear + >{{ $t('forms.signatureInput.clear') }} diff --git a/client/components/forms/components/CameraUpload.vue b/client/components/forms/components/CameraUpload.vue index 9426e4f9..39184cb1 100644 --- a/client/components/forms/components/CameraUpload.vue +++ b/client/components/forms/components/CameraUpload.vue @@ -49,17 +49,16 @@ class="w-6 h-6" />

- Allow Camera Permission + {{ $t('forms.cameraUpload.allowCameraPermission') }}

- You need to allow camera permission before you can take pictures. Go to - browser settings to enable camera permission on this page. + {{ $t('forms.cameraUpload.allowCameraPermissionDescription') }}

- Got it! + {{ $t('forms.cameraUpload.gotIt') }} @@ -81,16 +80,16 @@ class="w-6 h-6" />

- Camera Device Error + {{ $t('forms.cameraUpload.cameraDeviceError') }}

- An unknown error occurred when trying to start Webcam device. + {{ $t('forms.cameraUpload.cameraDeviceErrorDescription') }}

- Go back + {{ $t('forms.cameraUpload.goBack') }} diff --git a/client/components/forms/components/VSelect.vue b/client/components/forms/components/VSelect.vue index f07149c2..4e2def64 100644 --- a/client/components/forms/components/VSelect.vue +++ b/client/components/forms/components/VSelect.vue @@ -120,7 +120,7 @@ v-model="searchTerm" type="text" class="flex-grow ltr:pl-3 ltr:pr-7 rtl:!pr-3 rtl:pl-7 py-2 w-full focus:outline-none dark:text-white" - placeholder="Search" + :placeholder="allowCreation ? $t('forms.select.searchOrTypeToCreateNew') : $t('forms.select.search')" >
- {{ (allowCreation ? 'Type something to add an option' : 'No option available') }}. + {{ (allowCreation ? $t('forms.select.typeSomethingToAddAnOption') : $t('forms.select.noOptionAvailable')) }}.

- Create {{ + {{ $t('forms.select.create') }} {{ searchTerm }} diff --git a/client/components/forms/useFormInput.js b/client/components/forms/useFormInput.js index 3ffe9792..8bf7a289 100644 --- a/client/components/forms/useFormInput.js +++ b/client/components/forms/useFormInput.js @@ -28,7 +28,8 @@ export const inputProps = { help: {type: String, default: null}, helpPosition: {type: String, default: "below_input"}, color: {type: String, default: "#3B82F6"}, - wrapperClass: {type: String, default: ""}, + wrapperClass: { type: String, default: "" }, + locale: { type: String, default: "en" }, } export function useFormInput(props, context, options = {}) { diff --git a/client/components/open/forms/OpenCompleteForm.vue b/client/components/open/forms/OpenCompleteForm.vue index cf4a28bf..d80f8354 100644 --- a/client/components/open/forms/OpenCompleteForm.vue +++ b/client/components/open/forms/OpenCompleteForm.vue @@ -27,7 +27,7 @@

- This form is protected by a password. + {{ $t('forms.password_protected') }}

@@ -47,7 +47,7 @@ class="my-4" @click="passwordEntered" > - Submit + {{ $t('forms.submit') }}
@@ -139,7 +139,7 @@ class="text-gray-400 hover:text-gray-500 dark:text-gray-600 dark:hover:text-gray-500 cursor-pointer hover:underline text-xs" target="_blank" > - Powered by OpnForm + {{ $t('forms.powered_by') }} {{ $t('app.name') }}

@@ -186,7 +186,7 @@ href="https://opnform.com/?utm_source=form&utm_content=create_form_free" class="text-nt-blue hover:underline" > - Create your form for free with OpnForm + {{ $t('forms.create_form_free') }}

@@ -202,7 +202,6 @@