Browse Source

refactor: lint and i18n

pull/9314/head
Pranav C 3 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"> <NcButton v-if="config.configured" size="small" type="text" @click.stop="config.buttonClick">
<div class="flex gap-2 items-center"> <div class="flex gap-2 items-center">
<GeneralIcon icon="ncEdit3" /> <GeneralIcon icon="ncEdit3" />
Edit {{ $t('general.edit') }}
</div> </div>
</NcButton> </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> </div>
</div> </div>

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

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

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

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

Loading…
Cancel
Save