Browse Source

fix: i18n for JSON

pull/6519/head
Muhammed Mustafa 1 year ago
parent
commit
2509c89107
  1. 8
      packages/nc-gui/components/cell/Json.vue

8
packages/nc-gui/components/cell/Json.vue

@ -149,10 +149,12 @@ useSelectedCellKeyupListener(active, (e) => {
</a-button>
<div v-if="!isForm || isExpanded" class="flex flex-row">
<a-button type="text" size="small" :onclick="clear"><div class="text-xs">Cancel</div></a-button>
<a-button type="text" size="small" :onclick="clear"
><div class="text-xs">{{ $t('general.cancel') }}</div></a-button
>
<a-button type="primary" size="small" :disabled="!!error || localValue === vModel" @click="onSave">
<div class="text-xs">Save</div>
<div class="text-xs">{{ $t('general.save') }}</div>
</a-button>
</div>
</div>
@ -171,7 +173,7 @@ useSelectedCellKeyupListener(active, (e) => {
</span>
</div>
<span v-else-if="vModel === null && showNull" class="nc-null">NULL</span>
<span v-else-if="vModel === null && showNull" class="nc-null uppercase">{{ $t('general.null') }}</span>
<span v-else>{{ vModel }}</span>
</component>

Loading…
Cancel
Save