Browse Source

refactor: lint and i18n

pull/9314/head
Pranav C 4 months ago
parent
commit
08aa9d4a74
  1. 4
      packages/nc-gui/components/account/Setup.vue
  2. 4
      packages/nc-gui/components/account/setup/Config.vue
  3. 2
      packages/nc-gui/lang/en.json

4
packages/nc-gui/components/account/Setup.vue

@ -106,10 +106,10 @@ onMounted(async () => {
<NcButton v-if="config.configured" size="small" type="text" @click.stop="config.buttonClick">
<div class="flex gap-2 items-center">
<GeneralIcon icon="ncEdit3" />
Edit
{{ $t('general.edit') }}
</div>
</NcButton>
<NcButton v-else size="small" @click.stop="config.buttonClick">Configure</NcButton>
<NcButton v-else size="small" @click.stop="config.buttonClick">{{ $t('general.configure') }}</NcButton>
</div>
</div>
</div>

4
packages/nc-gui/components/account/setup/Config.vue

@ -129,7 +129,7 @@ const isValid = computed(() => {
</div>
<div class="nc-config-right-panel">
<div class="flex-grow flex flex-col gap-3">
<div class="text-gray-500 text-capitalize">Documentation</div>
<div class="text-gray-500 text-capitalize">{{ $t('labels.documentation') }}</div>
<a href="httpd://docs.nocodb.com" rel="noopener noreferrer" target="_blank" class="!no-underline !text-current">
<GeneralIcon icon="bookOpen" class="text-gray-500" />
@ -149,7 +149,7 @@ const isValid = computed(() => {
<NcDivider />
<div class="text-gray-500 text-capitalize">Modified on</div>
<div class="text-gray-500 text-capitalize">{{ $t('labels.modifiedOn') }}</div>
<div class="">
{{ dayjs(plugin.created_at).format('DD MMM YYYY HH:mm') }}
</div>

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

@ -93,6 +93,7 @@
"none": "None"
},
"general": {
"configure": "Configure",
"switch": "Switch",
"on": "On",
"onMultiple": "On Multiple",
@ -617,6 +618,7 @@
"categories": "Categories"
},
"labels": {
"modifiedOn": "Modified on",
"configuration": "Configuration",
"setup": "Setup",
"configLabel": "Configure {label}",

Loading…
Cancel
Save