Skip to content

Commit

Permalink
+ Update translations for params/sysParams.vue module.
Browse files Browse the repository at this point in the history
+ Update translations for autoCode/index.vue module.
+ Update translations for exportTemplate/exportTemplate.vue module.
  • Loading branch information
MohamedHassanNasr committed Dec 23, 2024
1 parent cad98da commit ae4dcf2
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 24 deletions.
5 changes: 4 additions & 1 deletion web/src/locales/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,10 @@
"note5": "ملاحظة: إضافة created_by، updated_by، deleted_by تلقائيًا إلى الهيكل، مما يسهل على المستخدمين التحكم في أذونات الموارد",
"createResourceIdentifier": "إنشاء معرف الموارد",
"note6": "ملاحظة: استخدام القالب الأساسي لن يولد أي هيكل وCURD، فقط تكوين enter والسمات الأخرى لتسهيل تطوير المنطق غير CURD",
"basicTemplate": "قالب أساسي"
"basicTemplate": "قالب أساسي",
"parentIdNote": "ملاحظة: سيتم إنشاء المعرف الاساسي تلقائيًا لربط العلاقة بين الاساس و الفرع ويتم دعم المفتاح الأساسي فقط كنوع int.",
"treeStructure": "هيكل الشجرة",
"frontendJsonAttr": "عرض سمات json للواجهة الأمامية"
},
"addField": "إضافة حقل",
"primaryKey": "المفتاح الأساسي",
Expand Down
5 changes: 4 additions & 1 deletion web/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,10 @@
"note5": "Note: Automatically add created_by, updated_by, deleted_by to the struct, making it easier for users to control resource permissions",
"createResourceIdentifier": "Resource Identifier",
"note6": "Note: Using the basic template will not generate any struct and CURD, only configure enter and other attributes to facilitate the development of non-CURD logic",
"basicTemplate": "Basic Template"
"basicTemplate": "Basic Template",
"parentIdNote": "Note: ParentID will be automatically created to associate the parent-child relationship. Only int type is supported for the primary key",
"treeStructure": "Tree structure",
"frontendJsonAttr": "Front-end display json attributes"
},
"addField": "Add Field",
"primaryKey": "Primary Key",
Expand Down
5 changes: 4 additions & 1 deletion web/src/locales/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,10 @@
"note5": "注:会自动在结构体添加 created_by updated_by deleted_by,方便用户进行资源权限控制",
"createResourceIdentifier": "创建资源标识",
"note6": "注:使用基础模板将不会生成任何结构体和CURD,仅仅配置enter等属性方便自行开发非CURD逻辑",
"basicTemplate": "基础模板"
"basicTemplate": "基础模板",
"parentIdNote": "註:會自動建立parentID來進行父子關係關聯,僅支援主鍵為int類型",
"treeStructure": "樹型結構",
"frontendJsonAttr": "前端展示json屬性"
},
"addField": "新增字段",
"primaryKey": "主键",
Expand Down
5 changes: 4 additions & 1 deletion web/src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,10 @@
"note5": "注:会自动在结构体添加 created_by updated_by deleted_by,方便用户进行资源权限控制",
"createResourceIdentifier": "创建资源标识",
"note6": "注:使用基础模板将不会生成任何结构体和CURD,仅仅配置enter等属性方便自行开发非CURD逻辑",
"basicTemplate": "基础模板"
"basicTemplate": "基础模板",
"parentIdNote": "注:会自动创建parentID来进行父子关系关联,仅支持主键为int类型",
"treeStructure": "树型结构",
"frontendJsonAttr": "前端展示json属性"
},
"addField": "新增字段",
"primaryKey": "主键",
Expand Down
8 changes: 4 additions & 4 deletions web/src/view/superAdmin/params/sysParams.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,15 @@
align="left"
:label="t('view.superAdmin.params.paramName')"
prop="name"
width="120"
width="160"
/>
<el-table-column align="left" :label="t('view.superAdmin.params.paramKey')" prop="key" width="120" />
<el-table-column align="left" :label="t('view.superAdmin.params.paramValue')" prop="value" width="120" />
<el-table-column align="left" :label="t('view.superAdmin.params.paramKey')" prop="key" width="160" />
<el-table-column align="left" :label="t('view.superAdmin.params.paramValue')" prop="value" width="160" />
<el-table-column
align="left"
:label="t('view.superAdmin.params.paramDesc')"
prop="desc"
width="120"
width="200"
/>
<el-table-column
align="left"
Expand Down
30 changes: 15 additions & 15 deletions web/src/view/systemTools/autoCode/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@
@blur="handleBlur"
/>

<div class="flex absolute right-28 bottom-2">
<div class="flex absolute bottom-2" style="right:9rem !important;">
<el-tooltip effect="light">
<template #content>
<div>
【完全免费】前往<a
{{ t('view.systemTools.autoCode.aiNote1') }}<a
class="text-blue-600"
href="https://plugin.gin-vue-admin.com/#/layout/userInfo/center"
target="_blank"
>插件市场个人中心</a
>申请AIPath,填入config.yaml的ai-path属性即可使用。
>{{ t('view.systemTools.autoCode.aiNote2') }}</a
>{{ t('view.systemTools.autoCode.aiNote3') }}
</div>
</template>
<el-button
Expand All @@ -46,7 +46,7 @@
<el-icon size="18">
<ai-gva />
</el-icon>
识图
{{ t('view.systemTools.autoCode.imageRecognition') }}
</el-button>
</el-tooltip>
</div>
Expand Down Expand Up @@ -547,18 +547,18 @@
<el-form-item>
<template #label>
<el-tooltip
content="注:会自动创建parentID来进行父子关系关联,仅支持主键为int类型"
:content="t('view.systemTools.autoCode.groupInfos.parentIdNote')"
placement="bottom"
effect="light"
>
<div>
树型结构 <el-icon><QuestionFilled /></el-icon>
{{ t('view.systemTools.autoCode.groupInfos.treeStructure') }} <el-icon><QuestionFilled /></el-icon>
</div>
</el-tooltip>
</template>
<div class="flex gap-2 items-center">
<el-checkbox v-model="form.isTree" />
<el-input v-model="form.treeJson" :disabled="!form.isTree" placeholder="前端展示json属性"></el-input>
<el-input v-model="form.treeJson" :disabled="!form.isTree" :placeholder="t('view.systemTools.autoCode.groupInfos.frontendJsonAttr')"></el-input>
</div>
</el-form-item>
</el-col>
Expand Down Expand Up @@ -758,7 +758,7 @@
align="left"
:label="t('view.systemTools.autoCode.fieldLen')"
prop="dataTypeLong"
width="160"
width="180"
>
<template #default="{ row }">
<el-input :disabled="row.disabled" v-model="row.dataTypeLong" />
Expand Down Expand Up @@ -1047,11 +1047,11 @@
if (form.value.fields.length > 0) {
const res = await ElMessageBox.confirm(
'AI生成会清空当前数据,是否继续?',
'提示',
t('view.systemTools.autoCode.aiClearDataNote'),
t('general.hint'),
{
confirmButtonText: '确定',
cancelButtonText: '取消',
confirmButtonText: t('general.confirm'),
cancelButtonText: t('general.cancel'),
type: 'warning'
}
)
Expand Down Expand Up @@ -1408,7 +1408,7 @@
if (form.value.isTree && !form.value.treeJson){
ElMessage({
type: 'error',
message: '请填写树型结构的前端展示json属性'
message: t('view.systemTools.autoCode.fillJsonDataNote')
})
return false
}
Expand Down Expand Up @@ -1449,7 +1449,7 @@
) {
ElMessage({
type: 'error',
message: '存在与模板同名的的字段JSON'
message: t('view.systemTools.autoCode.errJsonFieldNameAsTemplate')
})
return false
}
Expand Down
2 changes: 1 addition & 1 deletion web/src/view/systemTools/exportTemplate/exportTemplate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
icon="documentCopy"
class="table-button"
@click="copyFunc(scope.row)"
>复制</el-button
>{{ t('view.systemTools.autoCode.copy') }}</el-button
>
<el-button
type="primary"
Expand Down

0 comments on commit ae4dcf2

Please sign in to comment.