diff --git a/packages/nc-gui/components/account/UsersModal.vue b/packages/nc-gui/components/account/UsersModal.vue index 8c03f48ccc..03ca89f735 100644 --- a/packages/nc-gui/components/account/UsersModal.vue +++ b/packages/nc-gui/components/account/UsersModal.vue @@ -175,7 +175,7 @@ const emailInput: VNodeRef = (el) => (el as HTMLInputElement)?.focus() v-bind="validateInfos.emails" validate-trigger="onBlur" name="emails" - :rules="[{ required: true, message: 'Please input email' }]" + :rules="[{ required: true, message: $t('msg.plsInputEmail') }]" >
{{ $t('datatype.Email') }}:
@@ -190,9 +190,8 @@ const emailInput: VNodeRef = (el) => (el as HTMLInputElement)?.focus()
- -
{{ $t('labels.selectUserRole') }}
- + +
{{ $t('labels.selectUserRole') }}
-import { onKeyStroke, onMounted, reactive, ref } from '#imports' +import { onKeyStroke, onMounted, reactive, ref, useI18n } from '#imports' + +const { t } = useI18n() const props = defineProps<{ title: string @@ -29,7 +31,7 @@ function renameFile(fileName: string) { // } const rules = { - title: [{ required: true, message: 'title is required.' }], + title: [{ required: true, message: t('labels.titleRequired') }], } function onCancel() { diff --git a/packages/nc-gui/components/dashboard/settings/data-sources/CreateBase.vue b/packages/nc-gui/components/dashboard/settings/data-sources/CreateBase.vue index 3b73ef38a1..371ca85ed2 100644 --- a/packages/nc-gui/components/dashboard/settings/data-sources/CreateBase.vue +++ b/packages/nc-gui/components/dashboard/settings/data-sources/CreateBase.vue @@ -126,7 +126,7 @@ const validators = computed(() => { 'title': [ { required: true, - message: 'Source name is required', + message: t('labels.sourceNameRequired'), }, baseTitleValidator, ], diff --git a/packages/nc-gui/components/dlg/AirtableImport.vue b/packages/nc-gui/components/dlg/AirtableImport.vue index 1358a7438c..142bd3fc35 100644 --- a/packages/nc-gui/components/dlg/AirtableImport.vue +++ b/packages/nc-gui/components/dlg/AirtableImport.vue @@ -346,7 +346,7 @@ onMounted(async () => {
diff --git a/packages/nc-gui/components/dlg/share-and-collaborate/Collaborate.vue b/packages/nc-gui/components/dlg/share-and-collaborate/Collaborate.vue index aa149774f2..863c8fabe4 100644 --- a/packages/nc-gui/components/dlg/share-and-collaborate/Collaborate.vue +++ b/packages/nc-gui/components/dlg/share-and-collaborate/Collaborate.vue @@ -58,7 +58,7 @@ watch( v-bind="validateInfos.emails" validate-trigger="onBlur" name="emails" - :rules="[{ required: true, message: 'Please input email' }]" + :rules="[{ required: true, message: t('msg.plsInputEmail') }]" >
- + {
-
{{ $t('activity.surveyMode') }}
-
-
{{ $t('activity.rtlOrientation') }}
-
-
{{ $t('activity.useTheme') }}
{ >
- Copied invite link + {{ $t('activity.copiedInviteLink') }}
- Copy invite link + {{ $t('activity.copyInviteLink') }}
diff --git a/packages/nc-gui/components/general/FullScreen.vue b/packages/nc-gui/components/general/FullScreen.vue index c779635125..03e2a03987 100644 --- a/packages/nc-gui/components/general/FullScreen.vue +++ b/packages/nc-gui/components/general/FullScreen.vue @@ -34,9 +34,8 @@ useEventListener(document, 'keydown', async (e: KeyboardEvent) => {