Skip to content

Commit 32e28a0

Browse files
authored
fix: update i18n (#8)
* Revert "ci: Github workflow arm64 for frontend" This reverts commit 4c3729d. * fix: update i18n
1 parent ecb01a2 commit 32e28a0

16 files changed

+61
-75
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ jobs:
6464
push: true
6565
tags: beclab/devbox:${{ steps.get-latest-tag.outputs.tag }}
6666
file: Dockerfile
67-
platforms: linux/amd64,linux/arm64
67+
platforms: linux/amd64,linux/arm64

packages/web/src/components/ConfigComponent.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@
6060
color="negative"
6161
size="16px"
6262
/>
63-
<span class="q-ml-sm">{{
64-
t(`enums.CONFIG_TAB.${menu.name}`)
65-
}}</span>
63+
<span class="q-ml-sm">{{ t(`enums.${menu.name}`) }}</span>
6664
</div>
6765
</q-tab>
6866
</q-tabs>

packages/web/src/components/EditComponent.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,25 +134,25 @@ const fileInfo = reactive({
134134
135135
const fileMenu = ref([
136136
{
137-
label: t(`enums.OPERATE_ACTION.${OPERATE_ACTION.ADD_FOLDER}`),
137+
label: t(`enums.${OPERATE_ACTION.ADD_FOLDER}`),
138138
name: OPERATE_ACTION.ADD_FOLDER,
139139
icon: 'sym_r_create_new_folder'
140140
},
141141
{
142-
label: t(`enums.OPERATE_ACTION.${OPERATE_ACTION.ADD_FILE}`),
142+
label: t(`enums.${OPERATE_ACTION.ADD_FILE}`),
143143
name: OPERATE_ACTION.ADD_FILE,
144144
icon: 'sym_r_note_add'
145145
}
146146
]);
147147
148148
const oprateMenu = ref([
149149
{
150-
label: t(`enums.OPERATE_ACTION.${OPERATE_ACTION.RENAME}`),
150+
label: t(`enums.${OPERATE_ACTION.RENAME}`),
151151
name: OPERATE_ACTION.RENAME,
152152
icon: 'sym_r_edit_square'
153153
},
154154
{
155-
label: t(`enums.OPERATE_ACTION.${OPERATE_ACTION.DELETE}`),
155+
label: t(`enums.${OPERATE_ACTION.DELETE}`),
156156
name: OPERATE_ACTION.DELETE,
157157
icon: 'sym_r_delete'
158158
}

packages/web/src/components/config/EntrancesComponent.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="column">
3-
<div class="text-h6 text-ink-1">{{ t('enums.CONFIG_TAB.DETAILS') }}</div>
3+
<div class="text-h6 text-ink-1">{{ t('enums.DETAILS') }}</div>
44

55
<div class="form-item row">
66
<div class="form-item-key text-subtitle2 text-ink-1">
@@ -235,7 +235,7 @@
235235
flat
236236
no-caps
237237
color="teal-pressed"
238-
:label="t('config.btn.addClients')"
238+
:label="t('config.addClients')"
239239
dropdown-icon="sym_r_keyboard_arrow_down"
240240
>
241241
<q-list flat>

packages/web/src/components/config/MetadataComponent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="column">
3-
<div class="text-h6 text-ink-1">{{ t('enums.CONFIG_TAB.METADATA') }}</div>
3+
<div class="text-h6 text-ink-1">{{ t('enums.METADATA') }}</div>
44

55
<div class="form-item row">
66
<div class="form-item-key text-subtitle2 text-ink-1">

packages/web/src/components/config/OptionsComponent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="column">
3-
<div class="text-h6 text-ink-1">{{ t('enums.CONFIG_TAB.OPTIONS') }}</div>
3+
<div class="text-h6 text-ink-1">{{ t('enums.OPTIONS') }}</div>
44

55
<div class="form-item row">
66
<div class="form-item-key text-subtitle2 text-ink-1">

packages/web/src/components/config/PermissionComponent.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div class="column">
33
<div class="text-h6 text-ink-1">
4-
{{ t('enums.CONFIG_TAB.PERMISSIONS') }}
4+
{{ t('enums.PERMISSIONS') }}
55
</div>
66

77
<div class="form-item row">
@@ -31,7 +31,7 @@
3131
flat
3232
no-caps
3333
color="teal-8"
34-
:label="t('config.btn.add')"
34+
:label="t('config.add')"
3535
@click="addProvider"
3636
/>
3737
</div>

packages/web/src/components/config/SpecComponent.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="column">
3-
<div class="text-h6 text-ink-1">{{ t('enums.CONFIG_TAB.SPACE') }}</div>
3+
<div class="text-h6 text-ink-1">{{ t('enums.SPACE') }}</div>
44

55
<div class="form-item row">
66
<div class="form-item-key text-subtitle2 text-ink-1">
@@ -18,7 +18,7 @@
1818
no-caps
1919
@click="addEntrance"
2020
color="teal-pressed"
21-
:label="t('config.btn.addEntrance')"
21+
:label="t('config.addEntrance')"
2222
/>
2323
</div>
2424

@@ -67,7 +67,7 @@
6767
flat
6868
no-caps
6969
color="teal-pressed"
70-
:label="t('config.btn.add')"
70+
:label="t('config.add')"
7171
dropdown-icon="sym_r_keyboard_arrow_down"
7272
>
7373
<q-list>
@@ -118,7 +118,7 @@
118118
flat
119119
no-caps
120120
color="teal-pressed"
121-
:label="t('config.btn.addDependencies')"
121+
:label="t('config.addDependencies')"
122122
@click="addDependency"
123123
/>
124124
</div>

packages/web/src/components/dialog/DialogDependency.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
<q-card class="card-continer" flat>
44
<terminus-dialog-bar
55
:label="
6-
mode === 'create'
7-
? t('dialog.title.addEntrance')
8-
: t('dialog.title.editEntrance')
6+
mode === 'create' ? t('dialog.addEntrance') : t('dialog.editEntrance')
97
"
108
icon=""
119
titAlign="text-left"

packages/web/src/components/dialog/DialogEditClient.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ const updateSupportClient = (value) => {
6767
6868
const title = computed(() => {
6969
if (props.mode === 'create') {
70-
return t('dialog.title.addClient', { type: selfSupportData.value.label });
70+
return t('dialog.addClient', { type: selfSupportData.value.label });
7171
} else {
72-
return t('dialog.title.editClient', { type: selfSupportData.value.label });
72+
return t('dialog.editClient', { type: selfSupportData.value.label });
7373
}
7474
});
7575

0 commit comments

Comments
 (0)