Browse Source

fix: i18n for Misc Modal

pull/6512/head
Muhammed Mustafa 1 year ago
parent
commit
864700f0b9
  1. 4
      packages/nc-gui/components/dashboard/settings/Misc.vue
  2. 6
      packages/nc-gui/components/dashboard/settings/Modal.vue
  3. 4
      packages/nc-gui/lang/en.json

4
packages/nc-gui/components/dashboard/settings/Misc.vue

@ -12,6 +12,8 @@ const { project } = storeToRefs(projectStore)
const _projectId = inject(ProjectIdInj, undefined)
const projectId = computed(() => _projectId?.value ?? project.value?.id)
const { t } = useI18n()
watch(includeM2M, async () => await loadTables())
const showNullAndEmptyInFilter = ref()
@ -31,7 +33,7 @@ async function showNullAndEmptyInFilterOnChange(evt: CheckboxChangeEvent) {
if (!evt.target.checked) {
if (await hasEmptyOrNullFilters()) {
showNullAndEmptyInFilter.value = true
message.warning('Null / Empty filters exist. Please remove them first.')
message.warning(t('msg.error.nullFilterExists'))
}
}
const newProjectMeta = {

6
packages/nc-gui/components/dashboard/settings/Modal.vue

@ -43,6 +43,8 @@ provide(ProjectIdInj, projectId)
const { $e } = useNuxtApp()
const { t } = useI18n()
const dataSourcesReload = ref(false)
const dataSourcesAwakened = ref(false)
@ -107,12 +109,12 @@ const tabsInfo: TabGroup = {
// },
projectSettings: {
// Project Settings
title: 'Project Settings',
title: t('labels.projectSettings'),
icon: iconMap.settings,
subTabs: {
misc: {
// Misc
title: 'Misc',
title: t('general.misc'),
body: Misc,
},
},

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

@ -926,7 +926,9 @@
"atLeastOneUppercase": "One Uppercase letter",
"atLeastOneNumber": "One Number",
"atLeastOneSpecialChar": "One special character",
"allowedSpecialCharList": "Allowed special character list"
"allowedSpecialCharList": "Allowed special character list",
"invalidEmails": "Invalid emails",
"invalidEmail": "Invalid Email"
},
"invalidURL": "Invalid URL",
"invalidEmail": "Invalid Email",

Loading…
Cancel
Save