From 32e28a018a66c53fa4298fbc29ab5425c7bf165c Mon Sep 17 00:00:00 2001 From: huaiyuan <1029848564@qq.com> Date: Wed, 3 Jul 2024 21:45:09 +0800 Subject: [PATCH] fix: update i18n (#8) * Revert "ci: Github workflow arm64 for frontend" This reverts commit 4c3729d57d99a5ea211cd8b5dba9cd23b738b895. * fix: update i18n --- .github/workflows/build.yaml | 2 +- .../web/src/components/ConfigComponent.vue | 4 +- packages/web/src/components/EditComponent.vue | 8 +-- .../components/config/EntrancesComponent.vue | 4 +- .../components/config/MetadataComponent.vue | 2 +- .../components/config/OptionsComponent.vue | 2 +- .../components/config/PermissionComponent.vue | 4 +- .../src/components/config/SpecComponent.vue | 8 +-- .../components/dialog/DialogDependency.vue | 4 +- .../components/dialog/DialogEditClient.vue | 4 +- .../components/dialog/DialogEditProvider.vue | 4 +- .../components/dialog/DialogEditReference.vue | 4 +- .../src/components/dialog/DialogEntrance.vue | 4 +- .../src/components/dialog/DialogPolicies.vue | 4 +- packages/web/src/i18n/en-US/index.ts | 70 ++++++++----------- packages/web/src/stores/menu.ts | 8 +-- 16 files changed, 61 insertions(+), 75 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 51d9f1d..e8234ae 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -64,4 +64,4 @@ jobs: push: true tags: beclab/devbox:${{ steps.get-latest-tag.outputs.tag }} file: Dockerfile - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64,linux/arm64 \ No newline at end of file diff --git a/packages/web/src/components/ConfigComponent.vue b/packages/web/src/components/ConfigComponent.vue index 799368f..2825e18 100644 --- a/packages/web/src/components/ConfigComponent.vue +++ b/packages/web/src/components/ConfigComponent.vue @@ -60,9 +60,7 @@ color="negative" size="16px" /> - {{ - t(`enums.CONFIG_TAB.${menu.name}`) - }} + {{ t(`enums.${menu.name}`) }} diff --git a/packages/web/src/components/EditComponent.vue b/packages/web/src/components/EditComponent.vue index ac83a36..a17dcf5 100644 --- a/packages/web/src/components/EditComponent.vue +++ b/packages/web/src/components/EditComponent.vue @@ -134,12 +134,12 @@ const fileInfo = reactive({ const fileMenu = ref([ { - label: t(`enums.OPERATE_ACTION.${OPERATE_ACTION.ADD_FOLDER}`), + label: t(`enums.${OPERATE_ACTION.ADD_FOLDER}`), name: OPERATE_ACTION.ADD_FOLDER, icon: 'sym_r_create_new_folder' }, { - label: t(`enums.OPERATE_ACTION.${OPERATE_ACTION.ADD_FILE}`), + label: t(`enums.${OPERATE_ACTION.ADD_FILE}`), name: OPERATE_ACTION.ADD_FILE, icon: 'sym_r_note_add' } @@ -147,12 +147,12 @@ const fileMenu = ref([ const oprateMenu = ref([ { - label: t(`enums.OPERATE_ACTION.${OPERATE_ACTION.RENAME}`), + label: t(`enums.${OPERATE_ACTION.RENAME}`), name: OPERATE_ACTION.RENAME, icon: 'sym_r_edit_square' }, { - label: t(`enums.OPERATE_ACTION.${OPERATE_ACTION.DELETE}`), + label: t(`enums.${OPERATE_ACTION.DELETE}`), name: OPERATE_ACTION.DELETE, icon: 'sym_r_delete' } diff --git a/packages/web/src/components/config/EntrancesComponent.vue b/packages/web/src/components/config/EntrancesComponent.vue index e931f79..839b1ec 100644 --- a/packages/web/src/components/config/EntrancesComponent.vue +++ b/packages/web/src/components/config/EntrancesComponent.vue @@ -1,6 +1,6 @@