Skip to content

[AMORO-3812]Remove duplicate keys in web language resource files #3812

@smallyao

Description

@smallyao

Search before asking

  • I have searched in the issues and found no similar issues.

What would you like to be improved?

When compiling amoro-web project, following information is output
`
[INFO] > dashboard-new@0.0.0 build /root/code/apache/amoro/amoro/amoro-web
[INFO] > vite build
[INFO]
[INFO] The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
[INFO] vite v5.2.13 building for production...
[INFO] transforming...
[INFO] [plugin:vite:esbuild] [plugin vite:esbuild] src/language/en.ts: Duplicate key "healthScore" in object literal
[INFO] 228| totalCount: 'total {total} records',
[INFO] 229| healthScoreDetails: 'HealthScoreDetails',
[INFO] 230| healthScore: 'HealthScore',
[INFO] | ^
[INFO] 231| smallFileScore: 'SmallFileScore',
[INFO] 232| equalityDeleteScore: 'EqDeleteScore',
[INFO]
[INFO] [plugin:vite:esbuild] [plugin vite:esbuild] src/language/zh.ts: Duplicate key "healthScore" in object literal
[INFO] 228| totalCount: '??? {total} ???',
[INFO] 229| healthScoreDetails: '??????????????????',
[INFO] 230| healthScore: '????????????',
[INFO] | ^
[INFO] 231| smallFileScore: '???????????????',
[INFO] 232| equalityDeleteScore: 'eq-delete??????',

[INFO]
[INFO] ??? 7250 modules transformed.

`

How should we improve?

Remove duplicate keys

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Subtasks

No response

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions