Browse Source

chore(gui): move label to i18n

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4547/head
Pranav C 2 years ago
parent
commit
3d75334332
  1. 30
      packages/nc-gui/components/smartsheet/header/Menu.vue
  2. 8
      packages/nc-gui/lang/en.json

30
packages/nc-gui/components/smartsheet/header/Menu.vue

@ -225,23 +225,26 @@ const hideField = async () => {
<template v-if="column.uidt !== UITypes.LinkToAnotherRecord || column.colOptions.type !== RelationTypes.BELONGS_TO"> <template v-if="column.uidt !== UITypes.LinkToAnotherRecord || column.colOptions.type !== RelationTypes.BELONGS_TO">
<a-divider class="!my-0" /> <a-divider class="!my-0" />
<a-menu-item @click="sortByColumn('asc')"> <a-menu-item @click="sortByColumn('asc')">
<div class="nc-column-insert-after nc-header-menu-item"> <div v-e="['c:field:sort', { dir: 'asc' }]" class="nc-column-insert-after nc-header-menu-item">
<MdiSortAscending class="text-primary" /> <MdiSortAscending class="text-primary" />
Sort Ascending <!-- Sort Ascending -->
{{ $t('general.sortAsc') }}
</div> </div>
</a-menu-item> </a-menu-item>
<a-menu-item @click="sortByColumn('desc')"> <a-menu-item @click="sortByColumn('desc')">
<div class="nc-column-insert-before nc-header-menu-item"> <div v-e="['c:field:sort', { dir: 'desc' }]" class="nc-column-insert-before nc-header-menu-item">
<MdiSortDescending class="text-primary" /> <MdiSortDescending class="text-primary" />
Sort Descending <!-- Sort Descending -->
{{ $t('general.sortDesc') }}
</div> </div>
</a-menu-item> </a-menu-item>
</template> </template>
<a-divider class="!my-0" /> <a-divider class="!my-0" />
<a-menu-item @click="hideField"> <a-menu-item @click="hideField">
<div class="nc-column-insert-before nc-header-menu-item"> <div v-e="['c:field:hide']" class="nc-column-insert-before nc-header-menu-item">
<MdiEyeOffOutline class="text-primary" /> <MdiEyeOffOutline class="text-primary" />
Hide Field <!-- Hide Field -->
{{ $t('general.hideField') }}
</div> </div>
</a-menu-item> </a-menu-item>
@ -251,21 +254,24 @@ const hideField = async () => {
v-if="column.uidt !== UITypes.LinkToAnotherRecord && column.uidt !== UITypes.Lookup && !column.pk" v-if="column.uidt !== UITypes.LinkToAnotherRecord && column.uidt !== UITypes.Lookup && !column.pk"
@click="duplicateColumn" @click="duplicateColumn"
> >
<div class="nc-column-duplicate nc-header-menu-item"> <div v-e="['c:field:duplicate']" class="nc-column-duplicate nc-header-menu-item">
<MdiFileReplaceOutline class="text-primary" /> <MdiFileReplaceOutline class="text-primary" />
Duplicate <!-- Duplicate -->
{{ t('general.duplicate') }}
</div> </div>
</a-menu-item> </a-menu-item>
<a-menu-item @click="addColumn()"> <a-menu-item @click="addColumn()">
<div class="nc-column-insert-after nc-header-menu-item"> <div v-e="['c:field:insert:after']" class="nc-column-insert-after nc-header-menu-item">
<MdiTableColumnPlusAfter class="text-primary" /> <MdiTableColumnPlusAfter class="text-primary" />
Insert After <!-- Insert After -->
{{ t('general.insertAfter') }}
</div> </div>
</a-menu-item> </a-menu-item>
<a-menu-item @click="addColumn(true)"> <a-menu-item @click="addColumn(true)">
<div class="nc-column-insert-before nc-header-menu-item"> <div v-e="['c:field:insert:before']" class="nc-column-insert-before nc-header-menu-item">
<MdiTableColumnPlusBefore class="text-primary" /> <MdiTableColumnPlusBefore class="text-primary" />
Insert before <!-- Insert Before -->
{{ t('general.insertBefore') }}
</div> </div>
</a-menu-item> </a-menu-item>
<a-divider class="!my-0" /> <a-divider class="!my-0" />

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

@ -69,7 +69,13 @@
"betaNote": "This feature is currently in beta.", "betaNote": "This feature is currently in beta.",
"moreInfo": "More information can be found here", "moreInfo": "More information can be found here",
"logs": "Logs", "logs": "Logs",
"groupingField": "Grouping Field" "groupingField": "Grouping Field",
"duplicate": "Duplicate",
"insertAfter": "Insert After",
"insertBefore": "Insert Before",
"hideField": "Hide Field",
"sortAsc": "Sort Ascending",
"sortDesc": "Sort Descending"
}, },
"objects": { "objects": {
"project": "Project", "project": "Project",

Loading…
Cancel
Save