Browse Source

fix: i18n for filter and sort

pull/6512/head
Muhammed Mustafa 1 year ago
parent
commit
9d35a59779
  1. 2
      packages/nc-gui/components/smartsheet/toolbar/ColumnFilter.vue
  2. 4
      packages/nc-gui/components/smartsheet/toolbar/CreateSort.vue
  3. 2
      packages/nc-gui/components/smartsheet/toolbar/SortListMenu.vue
  4. 2
      packages/nc-gui/lang/en.json

2
packages/nc-gui/components/smartsheet/toolbar/ColumnFilter.vue

@ -488,7 +488,7 @@ onMounted(async () => {
'ml-0.5': !nested,
}"
>
No filters added
{{ $t('title.noFiltersAdded') }}
</div>
<slot />

4
packages/nc-gui/components/smartsheet/toolbar/CreateSort.vue

@ -89,10 +89,10 @@ const onArrowUp = () => {
@keydown.enter.prevent="onClick(options[activeFieldIndex])"
>
<div class="flex pb-3 px-4 border-b-1 border-gray-100">
<input ref="inputRef" v-model="search" class="w-full focus:outline-none" placeholder="Select Field to Sort" />
<input ref="inputRef" v-model="search" class="w-full focus:outline-none" :placeholder="$t('msg.selectFieldToSort')" />
</div>
<div class="flex-col w-full max-h-100 nc-scrollbar-md !overflow-y-auto">
<div v-if="!options.length" class="flex text-gray-500 px-4 py-2.25">Empty</div>
<div v-if="!options.length" class="flex text-gray-500 px-4 py-2.25">{{ $t('general.empty') }}</div>
<div
v-for="(option, index) in options"
:key="index"

2
packages/nc-gui/components/smartsheet/toolbar/SortListMenu.vue

@ -128,7 +128,7 @@ watch(open, () => {
<SmartsheetToolbarCreateSort v-if="!sorts.length" :is-parent-open="open" @created="addSort" />
<div
v-else
:class="{ ' min-w-102': sorts.length }"
:class="{ 'min-w-102': sorts.length }"
class="py-6 pl-6 nc-filter-list max-h-[max(80vh,30rem)]"
data-testid="nc-sorts-menu"
>

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

@ -246,6 +246,7 @@
"isNotNull": "is not null"
},
"title": {
"noFiltersAdded": "No filters added",
"editCards": "Edit Cards",
"noFieldsFound": "No fields found",
"displayValue": "Display Value",
@ -689,6 +690,7 @@
"selectField": "Select field"
},
"msg": {
"selectFieldToSort": "Select Field to Sort",
"createWebhookMsg1": "Get started with web-hooks!",
"createWebhookMsg2": "Create web-hooks to power you automations,",
"createWebhookMsg3": "Get notified as soon as there are changes in your data",

Loading…
Cancel
Save