Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion wled.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
en,
Base,
"fr-CA",
"zh-Hans",
);
mainGroup = C9A9E5B42918D1C3005B5C22;
packageReferences = (
Expand Down Expand Up @@ -402,4 +403,4 @@
/* End XCSwiftPackageProductDependency section */
};
rootObject = C9A9E5B52918D1C3005B5C22 /* Project object */;
}
}
2 changes: 2 additions & 0 deletions wled/View/WebView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ struct WebView: UIViewRepresentable {
switch Locale.current.language.languageCode?.identifier {
case "fr":
return "fr"
case "zh":
return "zh"
default:
return "en"
}
Expand Down
16 changes: 16 additions & 0 deletions wled/errorPage.zh.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="zh-Hans">
<head>
<meta charset="utf-8" />
<title>设备不可用</title>
<meta name="viewport" content="width=device-width" />
<link rel="stylesheet" href="errorPage.css" />
</head>
<body>
<div>
<img src="012_rip.png" alt="Dead LED character" />
<h1>无法连接至设备</h1>
<p>请确认设备已接通电源并连接到网络</p>
</div>
</body>
</html>
1 change: 1 addition & 0 deletions wled/zh-Hans.lproj/InfoPlist.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NSLocalNetworkUsageDescription = "WLED 通过本地网络连接至您附近的 WLED 设备。";
Binary file added wled/zh-Hans.lproj/Localizable.strings
Binary file not shown.