Browse Source

fix: i18n for Rating

pull/6519/head
Muhammed Mustafa 11 months ago
parent
commit
136e081c5d
  1. 4
      packages/nc-gui/components/smartsheet/column/RatingOptions.vue
  2. 6
      packages/nc-gui/lang/en.json

4
packages/nc-gui/components/smartsheet/column/RatingOptions.vue

@ -71,7 +71,7 @@ watch(
<template>
<a-row :gutter="8">
<a-col :span="12">
<a-form-item label="Icon">
<a-form-item :label="$t('labels.icon')">
<a-select v-model:value="vModel.meta.iconIdx" class="w-52" dropdown-class-name="nc-dropdown-rating-icon">
<a-select-option v-for="(icon, i) of iconList" :key="i" :value="i">
<div class="flex items-center">
@ -95,7 +95,7 @@ watch(
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="Max">
<a-form-item :label="$t('labels.max')">
<a-select v-model:value="vModel.meta.max" class="w-52" dropdown-class-name="nc-dropdown-rating-color">
<a-select-option v-for="(v, i) in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]" :key="i" :value="v">
{{ v }}

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

@ -359,6 +359,8 @@
}
},
"labels": {
"icon": "Icon",
"max": "Max",
"binaryEncodingFormat": "Binary encoding format",
"syntax": "Syntax",
"examples": "Examples",
@ -832,25 +834,21 @@
"validColumnsForBarCode": "The valid Column Types for a Barcode Column are: Number, Single Line Text, Long Text, Phone Number, URL, Email, Decimal. Please create one first.",
"hm": {
"title": "Has Many Relation",
"icon": "HasManyIcon",
"tooltip_desc": "A single record from table ",
"tooltip_desc2": " can be linked with multiple records from table "
},
"mm": {
"title": "Many to Many Relation",
"icon": "ManytoManyIcon",
"tooltip_desc": "Multiple records from table ",
"tooltip_desc2": " can be linked with multiple records from table "
},
"bt": {
"title": "Belongs to Relation",
"icon": "BelongsToIcon",
"tooltip_desc": "A single record from table ",
"tooltip_desc2": " can be linked with a record from table "
},
"oo": {
"title": "One to One Relation",
"icon": "OnetoOneIcon",
"tooltip_desc": "A single record from table ",
"tooltip_desc2": " can be linked with a single record from table "
},

Loading…
Cancel
Save