Browse Source

fix: i18n for Form View

pull/6519/head
Muhammed Mustafa 1 year ago
parent
commit
76b211007f
  1. 18
      packages/nc-gui/components/smartsheet/Form.vue
  2. 7
      packages/nc-gui/lang/en.json

18
packages/nc-gui/components/smartsheet/Form.vue

@ -389,8 +389,10 @@ watch(view, (nextView) => {
<template> <template>
<template v-if="isMobileMode"> <template v-if="isMobileMode">
<div class="pl-6 pr-[120px] py-6 bg-white flex-col justify-start items-start gap-2.5 inline-flex"> <div class="pl-6 pr-[120px] py-6 bg-white flex-col justify-start items-start gap-2.5 inline-flex">
<div class="text-gray-500 text-5xl font-semibold leading-16">Available<br />in Desktop</div> <div class="text-gray-500 text-5xl font-semibold leading-16">
<div class="text-gray-500 text-base font-medium leading-normal">Form View is currently not supported on mobile.</div> {{ $t('general.available') }}<br />{{ $t('title.inDesktop') }}
</div>
<div class="text-gray-500 text-base font-medium leading-normal">{{ $t('msg.formViewNotSupportedOnMobile') }}</div>
</div> </div>
</template> </template>
<template v-else> <template v-else>
@ -399,16 +401,20 @@ watch(view, (nextView) => {
<div v-if="formViewData" class="items-center justify-center text-center mt-2"> <div v-if="formViewData" class="items-center justify-center text-center mt-2">
<a-alert type="success"> <a-alert type="success">
<template #message> <template #message>
<div class="text-center">{{ formViewData.success_msg || 'Successfully submitted form data' }}</div> <div class="text-center">{{ formViewData.success_msg || $t('msg.successfullySubmittedFormData') }}</div>
</template> </template>
</a-alert> </a-alert>
<div v-if="formViewData.show_blank_form" class="text-gray-400 mt-4"> <div v-if="formViewData.show_blank_form" class="text-gray-400 mt-4">
New form will be loaded after {{ secondsRemain }} seconds {{
$t('msg.newFormWillBeLoaded', {
seconds: secondsRemain,
})
}}
</div> </div>
<div v-if="formViewData.submit_another_form || !isPublic" class="text-center mt-4"> <div v-if="formViewData.submit_another_form || !isPublic" class="text-center mt-4">
<a-button type="primary" size="large" @click="submitted = false"> Submit Another Form</a-button> <a-button type="primary" size="large" @click="submitted = false"> {{ $t('activity.submitAnotherForm') }}</a-button>
</div> </div>
</div> </div>
</a-col> </a-col>
@ -773,7 +779,7 @@ watch(view, (nextView) => {
v-if="!localColumns.length" v-if="!localColumns.length"
class="mt-4 border-dashed border-2 border-gray-400 py-3 text-gray-400 text-center" class="mt-4 border-dashed border-2 border-gray-400 py-3 text-gray-400 text-center"
> >
Drag and drop fields here to add {{ $t('activity.dragAndDropFieldsHereToAdd') }}
</div> </div>
</template> </template>
</Draggable> </Draggable>

7
packages/nc-gui/lang/en.json

@ -59,6 +59,7 @@
"empty": "Empty", "empty": "Empty",
"changeIcon": "Change Icon", "changeIcon": "Change Icon",
"save": "Save", "save": "Save",
"available": "Available",
"abort": "Abort", "abort": "Abort",
"saving": "Saving", "saving": "Saving",
"cancel": "Cancel", "cancel": "Cancel",
@ -286,6 +287,7 @@
"noMembersFound": "No members found", "noMembersFound": "No members found",
"dateJoined": "Date Joined", "dateJoined": "Date Joined",
"tokenName": "Token name", "tokenName": "Token name",
"inDesktop": "in Desktop",
"rowData": "Row data", "rowData": "Row data",
"creator": "Creator", "creator": "Creator",
"qrCode": "QR Code", "qrCode": "QR Code",
@ -582,6 +584,8 @@
"hideInUI": "Hide in UI", "hideInUI": "Hide in UI",
"addBase": "Add Base", "addBase": "Add Base",
"addParameter": "Add Parameter", "addParameter": "Add Parameter",
"submitAnotherForm": "Submit Another Form",
"dragAndDropFieldsHereToAdd": "Drag and drop fields here to add",
"editBase": "Edit Base", "editBase": "Edit Base",
"enterText": "Enter text", "enterText": "Enter text",
"okEditBase": "Ok & Edit Base", "okEditBase": "Ok & Edit Base",
@ -838,6 +842,9 @@
"key": "Key" "key": "Key"
}, },
"msg": { "msg": {
"successfullySubmittedFormData": "Successfully submitted form data",
"formViewNotSupportedOnMobile": "Form view is not supported on mobile",
"newFormWillBeLoaded": "New form will be loaded after {seconds} seconds",
"optimizedQueryDisabled": "Optimized query is disabled", "optimizedQueryDisabled": "Optimized query is disabled",
"optimizedQueryEnabled": "Optimized query is enabled", "optimizedQueryEnabled": "Optimized query is enabled",
"invalidTime": "Invalid Time", "invalidTime": "Invalid Time",

Loading…
Cancel
Save