Browse Source

fix: i18n cleanup

pull/6614/head
Muhammed Mustafa 10 months ago
parent
commit
6cbeeab8dc
  1. 6
      packages/nc-gui/components/template/Editor.vue
  2. 18
      packages/nc-gui/components/workspace/CreateProjectDlg.vue
  3. 4
      packages/nc-gui/lang/en.json

6
packages/nc-gui/components/template/Editor.vue

@ -869,7 +869,11 @@ function handleUIDTChange(column, table) {
<a-select-option v-for="(option, i) of uiTypeOptions" :key="i" :value="option.value">
<a-tooltip placement="right">
<template v-if="isSelectDisabled(option.label, table.columns[record.key]?._disableSelect)" #title>
{{ $t('msg.tooLargeField') }} {{ option.label }}
{{
$t('msg.tooLargeFieldEntity', {
entity: option.label,
})
}}
</template>
{{ option.label }}
</a-tooltip>

18
packages/nc-gui/components/workspace/CreateProjectDlg.vue

@ -97,7 +97,11 @@ const typeLabel = computed(() => {
<!-- Create A New Table -->
<div class="flex flex-row items-center">
<GeneralProjectIcon :type="baseType" class="mr-2.5 !text-lg !h-4" />
{{ `${$t('general.create')} ${typeLabel}` }}
{{
$t('general.createEntity', {
entity: typeLabel,
})
}}
</div>
</template>
<div class="mt-3">
@ -133,9 +137,17 @@ const typeLabel = computed(() => {
:loading-label="`${$t('general.creating')} ${typeLabel}`"
@click="createProject"
>
{{ `${$t('general.create')} ${typeLabel}` }}
{{
$t('general.createEntity', {
entity: typeLabel,
})
}}
<template #loading>
{{ `${$t('general.creating')} ${typeLabel}` }}
{{
$t('general.creatingEntity', {
entity: typeLabel,
})
}}
</template>
</NcButton>
</div>

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

@ -76,7 +76,9 @@
"whatsappTwilio": "WhatsApp Twilio",
"submit": "Submit",
"create": "Create",
"createEntity": "Create {entity}",
"creating": "Creating",
"creatingEntity": "Creating {entity}",
"details": "Details",
"skip": "Skip",
"duplicate": "Duplicate",
@ -993,7 +995,7 @@
"noRecordFound": "Record not found",
"rowDeleted": "Record deleted",
"saveChanges": "Do you want to save the changes?",
"tooLargeField": "The field is too large to be converted to",
"tooLargeFieldEntity": "The field is too large to be converted to {entity}",
"roleRequired": "Role required",
"warning": {
"dbValid": "Please make sure database you are trying to connect is valid! This operation can cause schema loss!!",

Loading…
Cancel
Save