Skip to content

Commit 20302ca

Browse files
youngbeom-shin申永范-UX
andauthored
feat(locales): update English and Chinese codes (#1356)
* feat(locales): update English and Chinese codes * feat(locales): update English and Chinese codes * fix(tests): update error message in NewCode test - Change error message to include 'Repository' - Ensure clarity in user feedback --------- Co-authored-by: 申永范-UX <[email protected]>
1 parent bba90d2 commit 20302ca

File tree

4 files changed

+21
-36
lines changed

4 files changed

+21
-36
lines changed

frontend/src/components/__tests__/codes/NewCode.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe('NewCode', () => {
5555
const wrapper = createWrapper()
5656
await triggerFormButton(wrapper)
5757
await waitFor(() => {
58-
expect(wrapper.find('.el-form-item__error').text()).toBe( 'Please input Code Name')
58+
expect(wrapper.find('.el-form-item__error').text()).toBe( 'Please input Code Repository Name')
5959
})
6060
})
6161

frontend/src/locales/en_js/codes.js

Lines changed: 18 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -13,54 +13,41 @@ export const codes = {
1313
title: "Create New Code Repository",
1414
titleDesc: "The repository contains all code files and revision history.",
1515
owner: "Owner",
16-
codeName: "Code Name",
17-
codeNickName: "Code Nickname",
18-
codeDesc: "Code Description",
16+
codeName: "Code Repository Name",
17+
codeNickName: "Code Repository Nickname",
18+
codeDesc: "Code Repository Description",
1919
public: "Public",
20-
publicDesc: "Anyone on the internet can see this repository. Only you (individual) or members of your organization can commit.",
20+
publicDesc: "Anyone on the Internet can see this warehouse. Only you (the individual) or a member of your organization can submit.",
2121
private: "Private",
22-
privateDesc: "Only you (individual) or members of your organization can view and commit to this repository.",
23-
tips: "Will be displayed on the code list page, optional",
24-
createCode: "Create Code",
25-
createSuccess: "Code Repository created successfully",
22+
privateDesc: "Only you (the individual) or members of your organization can see and submit to this warehouse.",
23+
tips: "After creating your code repository, you can upload your files using a web page or Git.",
24+
createCode: "Create",
25+
createSuccess: "Code repository created successfully",
2626
tip: "Applies to the code base path and cannot be changed after creation",
2727
license: "License",
28-
createFail: "Code Repository creation failed",
28+
createFail: "Code repository creation failed",
2929
codeEnName: "Code Repository Name",
3030
},
3131
edit: {
32+
tips: "Will be displayed on the code list page, optional",
3233
tips2: "An introduction to code, optional",
3334
changeVisibility: "Modify code visibility",
3435
statusText: "The current code is currently",
35-
status: "Status.",
36-
codeVisibility: "Code visibility",
36+
status: "Status",
37+
codeVisibility: "Code Visibility",
3738
delCode: "Delete code",
39+
canNot: "Cannot",
3840
delTips: "This action",
39-
canNot: "cannot",
40-
delTips2: "be undone and will permanently delete the code repository",
41-
delTips3: "and all its files.",
42-
enterPls: "Please type",
43-
sureDel: "to confirm deletion",
41+
delTips2: "Undo, this will permanently delete",
42+
delTips3: "Code repository and all its files.",
43+
enterPls: "Please enter",
44+
sureDel: "Confirm deletion",
4445
privateVis: "Visible only to the creator or member of the organization",
4546
publicVis: "Anyone can see this code",
46-
confirmDel: "I understand and confirm deletion",
47+
confirmDel: "I know, confirm deletion",
4748
privateInfo: ", only the creator or organization administrator can submit",
4849
publicInfo: "Anyone on the Internet can see this code.",
4950
needCodeName: "Please provide code alias first",
5051
needCodelDesc: "Please provide code introduction first",
51-
codeName: "Code name",
52-
codeNickName: "Code nickname",
53-
codeDesc: "Code description",
54-
public: "Public",
55-
publicDesc: "Anyone on the internet can see this repository. Only you (individual) or members of your organization can commit.",
56-
private: "Private",
57-
privateDesc: "Only you (individual) or members of your organization can view and commit to this repository.",
58-
tips: "After creating the code, you can use the web or Git to upload your files.",
59-
createCode: "Create code",
60-
createSuccess: "Code Repository created successfully",
61-
tip: "Applies to the code base path and cannot be changed after creation",
62-
license: "License",
63-
createFail: "Code repository creation failed",
64-
codeEnName: "Code repository name",
6552
},
6653
}

frontend/src/locales/zh_hant_js/codes.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ export const codes = {
1717
codeNickName: "代碼倉庫別名",
1818
codeDesc: "代碼倉庫簡介",
1919
public: "公開",
20-
publicDesc:
21-
"任何互聯網上的人都可以看到這個倉庫。只有你(個人)或你所在組織的成員可以提交。",
20+
publicDesc: "任何互聯網上的人都可以看到這個倉庫。只有你(個人)或你所在組織的成員可以提交。",
2221
private: "私有",
2322
privateDesc: "只有你(個人)或你所在組織的成員可以看到並提交到這個倉庫。",
2423
tips: "創建代碼倉庫後,你可以使用網頁或 Git 上傳你的文件。",

frontend/src/locales/zh_js/codes.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ export const codes = {
1717
codeNickName: "代码仓库别名",
1818
codeDesc: "代码仓库简介",
1919
public: "公开",
20-
publicDesc:
21-
"任何互联网上的人都可以看到这个仓库。只有你(个人)或你所在组织的成员可以提交。",
20+
publicDesc: "任何互联网上的人都可以看到这个仓库。只有你(个人)或你所在组织的成员可以提交。",
2221
private: "私有",
2322
privateDesc: "只有你(个人)或你所在组织的成员可以看到并提交到这个仓库。",
2423
tips: "创建代码仓库后,你可以使用网页或 Git 上传你的文件。",

0 commit comments

Comments
 (0)