Skip to content

Commit

Permalink
[Improvement] Improve language key name and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
chouchouji committed Oct 17, 2024
1 parent 97e4caf commit 7daa95f
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 16 deletions.
10 changes: 5 additions & 5 deletions amoro-web/src/language/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ export default {
resourceGroup: 'Resource Group',
releaseOptModalTitle: 'Release this optimizer?',
cancelOptimizingProcessOptModalTitle: 'Cancel the optimizing process of this table?',
welecomeTip: 'Welcome to Amoro!',
signin: 'Sign in',
welcomeTip: 'Welcome to Amoro!',
signIn: 'Sign in',
username: 'Username',
password: 'Password',
pause: 'Pause',
Expand All @@ -153,7 +153,7 @@ export default {
upgrading: 'Upgrading',
upgradeHiveTable: 'Upgrade Hive Table',
ok: 'Ok',
partitonField: 'Partiton Field',
partitionField: 'Partition Field',
otherProperties: 'Other Properties',
errorMessage: 'Error Message',
copySuccess: 'Copy Success',
Expand Down Expand Up @@ -195,8 +195,8 @@ export default {
reset: 'Reset',
invalidInput: 'Invalid input',
createOptimizer: 'Create Optimizer',
addgroup: 'Add Group',
editgroup: 'Edit Group',
addGroup: 'Add Group',
editGroup: 'Edit Group',
cannotDeleteGroupModalTitle: 'Can\'t remove this group.',
cannotDeleteGroupModalContent: 'This group has been used.',
deleteGroupModalTitle: 'Remove this group',
Expand Down
10 changes: 5 additions & 5 deletions amoro-web/src/language/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ export default {
resourceGroup: '资源组',
releaseOptModalTitle: '释放此优化器?',
cancelOptimizingProcessOptModalTitle: '取消该表的优化过程?',
welecomeTip: '欢迎访问 Amoro!',
signin: '登入',
welcomeTip: '欢迎访问 Amoro!',
signIn: '登入',
username: '用户名',
password: '密码',
pause: '暂停',
Expand All @@ -153,7 +153,7 @@ export default {
upgrading: '升级中',
upgradeHiveTable: '升级 Hive 表',
ok: '确定',
partitonField: '分区字段',
partitionField: '分区字段',
otherProperties: '其他属性',
errorMessage: '错误信息',
copySuccess: '复制成功',
Expand Down Expand Up @@ -195,8 +195,8 @@ export default {
reset: '重置',
invalidInput: '非法输入',
createOptimizer: '创建优化器',
addgroup: '添加组',
editgroup: '编辑组',
addGroup: '添加组',
editGroup: '编辑组',
cannotDeleteGroupModalTitle: '不能移除这个组',
cannotDeleteGroupModalContent: '这个组已被使用',
deleteGroupModalTitle: '移除这个组',
Expand Down
2 changes: 1 addition & 1 deletion amoro-web/src/utils/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const DEFAULT_CONFIG = {
timeout: 45000,
headers: {
'Content-Type': 'application/json',
'X-Request-Source' : 'Web'
'X-Request-Source': 'Web',
},
}

Expand Down
2 changes: 1 addition & 1 deletion amoro-web/src/views/hive-details/upgrade.vue
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ onMounted(() => {
<schema-field ref="schemaFieldRef" :loading="loading" :fields="field" />
</a-form-item>
<a-form-item
:label="$t('partitonField')"
:label="$t('partitionField')"
name="partitonField"
>
<partition-field :loading="loading" :partition-fields="partitionFields" />
Expand Down
3 changes: 1 addition & 2 deletions amoro-web/src/views/login/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,11 @@ export default defineComponent({
html-type="submit"
class="login-form-button"
>
{{ $t("signin") }}
{{ $t("signIn") }}
</a-button>
</a-form-item>
</a-form>
</div>
<!-- <p class="desc">{{$t('welecomeTip')}}</p> -->
</div>
</template>

Expand Down
2 changes: 1 addition & 1 deletion amoro-web/src/views/resource/components/GroupModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ onMounted(() => {
<template>
<AModal
:open="true"
:title="edit ? $t('editgroup') : $t('addgroup')"
:title="edit ? $t('editGroup') : $t('addGroup')"
:confirm-loading="confirmLoading"
:closable="false"
class="group-modal"
Expand Down
2 changes: 1 addition & 1 deletion amoro-web/src/views/resource/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export default defineComponent({
:class="[activeTab === 'optimizergroup' ? 'active' : '']"
>
<a-button type="primary" class="g-mb-16" @click="editGroup(null)">
{{ t("addgroup") }}
{{ t("addGroup") }}
</a-button>
<List
:key="groupKeyCount"
Expand Down

0 comments on commit 7daa95f

Please sign in to comment.