Skip to content

Commit eba80c3

Browse files
authored
Merge pull request #8 from CodeDead/feature/chinese-translations
feat: added Chinese translations, added missing translation keys, ref…
2 parents fd7d705 + 417efc1 commit eba80c3

11 files changed

Lines changed: 109 additions & 18 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "advanced-portchecker",
33
"private": true,
4-
"version": "0.0.0",
4+
"version": "2.0.0",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

src-tauri/Cargo.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "advanced-portchecker"
3-
version = "0.1.0"
3+
version = "2.0.0"
44
description = "A lightweight TCP port checker with an intuitive UI."
55
authors = ["CodeDead <admin@codedead.com>"]
66
license = "GPL-3.0-only"
@@ -19,7 +19,7 @@ serde_json = "1.0"
1919
serde = { version = "1.0", features = ["derive"] }
2020
tauri = { version = "1.5.4", features = [ "dialog-save", "dialog-open", "os-all"] }
2121
open = "5.0.1"
22-
chrono = "0.4.32"
22+
chrono = "0.4.33"
2323

2424
[features]
2525
# this feature is used for production builds or when `devPath` points to the filesystem and the built-in dev server is disabled.

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"package": {
1010
"productName": "advanced-portchecker",
11-
"version": "0.1.0"
11+
"version": "2.0.0"
1212
},
1313
"tauri": {
1414
"allowlist": {

src/contexts/MainContextProvider/index.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import enUs from '../../languages/en_us.json';
44
import esEs from '../../languages/es_es.json';
55
import nlNl from '../../languages/nl_nl.json';
66
import frFr from '../../languages/fr_fr.json';
7+
import ZhCn from '../../languages/zh_cn.json';
78

89
const languageIndex = localStorage.languageIndex ? parseFloat(localStorage.languageIndex) : 0;
910
const themeIndex = localStorage.themeIndex ? parseFloat(localStorage.themeIndex) : 0;
@@ -12,7 +13,7 @@ const autoUpdate = localStorage.autoUpdate ? (localStorage.autoUpdate === 'true'
1213
const colorOnDark = localStorage.colorOnDark ? (localStorage.colorOnDark === 'true') : false;
1314

1415
const threads = localStorage.threads ? parseFloat(localStorage.threads) : 1;
15-
const timeout = localStorage.timeout ? parseFloat(localStorage.timeout) : 300;
16+
const timeout = localStorage.timeout ? parseFloat(localStorage.timeout) : 250;
1617
const noClosed = localStorage.noClosed ? (localStorage.noClosed === 'true') : false;
1718
const sort = localStorage.sort ? (localStorage.sort === 'true') : true;
1819

@@ -24,6 +25,7 @@ const initState = {
2425
esEs,
2526
frFr,
2627
nlNl,
28+
ZhCn,
2729
],
2830
themeIndex,
2931
themeType,

src/languages/en_us.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,6 @@
7979
"closed": "Closed",
8080
"exportType": "Export type",
8181
"export": "Export",
82-
"exportSuccessful": "Export successful"
82+
"exportSuccessful": "Export successful",
83+
"runningLatestVersion": "You are running the latest version."
8384
}

src/languages/es_es.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,6 @@
7979
"closed": "Cerrado",
8080
"exportType": "Tipo de exportación",
8181
"export": "Exportar",
82-
"exportSuccessful": "Exportación exitosa"
82+
"exportSuccessful": "Exportación exitosa",
83+
"runningLatestVersion": "Estás ejecutando la última versión."
8384
}

src/languages/fr_fr.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,6 @@
7979
"closed": "Fermé",
8080
"exportType": "Type d'exportation",
8181
"export": "Exporter",
82-
"exportSuccessful": "Exportation réussie"
82+
"exportSuccessful": "Exportation réussie",
83+
"runningLatestVersion": "Vous utilisez la dernière version."
8384
}

src/languages/nl_nl.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,6 @@
7979
"closed": "Gesloten",
8080
"exportType": "Export type",
8181
"export": "Exporteren",
82-
"exportSuccessful": "Exporteren succesvol"
82+
"exportSuccessful": "Exporteren succesvol",
83+
"runningLatestVersion": "U gebruikt de laatste versie."
8384
}

src/languages/zh_cn.json

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
{
2+
"applicationName": "Advanced PortChecker",
3+
"settings": "设置",
4+
"donate": "",
5+
"about": "关于",
6+
"scan": "扫描",
7+
"address": "地址",
8+
"startingPort": "起始港",
9+
"endingPort": "结束端口",
10+
"port": "港口",
11+
"hostName": "主机名",
12+
"portStatus": "端口状态",
13+
"scanDate": "扫描日期",
14+
"error": "错误",
15+
"ok": "好的",
16+
"updateAvailable": "可用更新",
17+
"newVersion": "版本 {x} 可用。 您想下载吗?",
18+
"information": "信息",
19+
"download": "下载",
20+
"cancel": "取消",
21+
"aboutText": "Advanced PortChecker 由 DeadLine 创建。\n\n主题:MUI\n许可证:GPLv3\n版本:{x}\n\n版权所有 © {year} CodeDead",
22+
"license": "执照",
23+
"website": "网站",
24+
"autoUpdate": "自动检查更新",
25+
"colorOnDark": "深色主题上的颜色",
26+
"language": "语言",
27+
"yes": "是的",
28+
"no": "",
29+
"confirmation": "确认",
30+
"confirmResetSettings": "您确定要重置所有设置吗?",
31+
"default": "默认",
32+
"defaultThemeDescription": "默认主题。",
33+
"lightBlue": "浅蓝色",
34+
"lightBlueDescription": "触感轻盈。",
35+
"red": "红色",
36+
"redDescription": "保持前卫。",
37+
"green": "绿色的",
38+
"greenDescription": "自然是最好的。",
39+
"lightGreen": "浅绿色",
40+
"lightGreenDescription": "草总是更绿。",
41+
"purple": "紫色",
42+
"purpleDescription": "紫晶。",
43+
"deepPurple": "深紫色",
44+
"deepPurpleDescription": "如果紫色还不够。",
45+
"grey": "灰色",
46+
"greyDescription": "别等了。",
47+
"themeStyle": "主题风格",
48+
"light": "",
49+
"dark": "黑暗",
50+
"orange": "橙色",
51+
"orangeThemeDescription": "我们来学荷兰语吧。",
52+
"deepOrange": "深橙色",
53+
"deepOrangeDescription": "如果橙色还不够。",
54+
"amber": "琥珀",
55+
"amberDescription": "不选择性黄色。",
56+
"brown": "棕色",
57+
"brownDescription": "比停电好。",
58+
"pink": "粉色的",
59+
"pinkDescription": "爱的颜色。",
60+
"indigo": "靛蓝色",
61+
"indigoDescription": "它是热带植物吗?",
62+
"cyan": "青色",
63+
"cyanDescription": "介于蓝色和绿色之间。",
64+
"teal": "水鸭",
65+
"tealDescription": "眼睛周围的有色区域。",
66+
"lime": "酸橙",
67+
"limeDescription": "柑橘类水果的颜色。",
68+
"yellow": "黄色",
69+
"yellowDescription": "太阳的颜色。",
70+
"checkForUpdates": "检查更新",
71+
"reset": "重启",
72+
"theme": "主题",
73+
"threads": "线程",
74+
"timeout": "超时(毫秒)",
75+
"hideClosedPorts": "隐藏关闭的端口",
76+
"sort": "按端口号对结果排序",
77+
"clear": "明确",
78+
"open": "打开",
79+
"closed": "",
80+
"exportType": "导出类型",
81+
"export": "出口",
82+
"exportSuccessful": "导出成功",
83+
"runningLatestVersion": "您正在运行最新版本。"
84+
}

0 commit comments

Comments
 (0)