From 6acbc14fa98f4f637d4290941924ba065c2454e1 Mon Sep 17 00:00:00 2001
From: jackhuang <2504448153@qq.com>
Date: Sun, 7 Apr 2024 09:02:52 +0800
Subject: [PATCH] feat: add Chinese translation
Signed-off-by: jackhuang <2504448153@qq.com>
---
 html/preferences.html |   1 +
 translations/zh.json  | 114 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 115 insertions(+)
 create mode 100644 translations/zh.json
diff --git a/html/preferences.html b/html/preferences.html
index 1623fe4..af66fde 100644
--- a/html/preferences.html
+++ b/html/preferences.html
@@ -60,6 +60,7 @@
             
             
             
+            
         
     
     
diff --git a/translations/zh.json b/translations/zh.json
new file mode 100644
index 0000000..c29b4a7
--- /dev/null
+++ b/translations/zh.json
@@ -0,0 +1,114 @@
+{
+    "Preferences": "首选项",
+    "About": "关于",
+    "Download location": "下载位置",
+    "Current download location - ": "当前下载位置 - ",
+    "Enable transparent dark mode(only Linux, needs relaunch)": "启用透明暗黑模式(仅限 Linux,需要重新启动)",
+    "Please wait, necessary files are being downloaded": "请等待,正在下载必要的文件",
+    "Video": "视频",
+    "Audio": "音频",
+    "Title ": "标题 ",
+    "Select Format ": "选择格式 ",
+    "Download": "下载",
+    "Select Download Location": "选择下载位置",
+    "More options": "更多选项",
+    "Start": "开始",
+    "Select Language (Requires relaunch)": "选择语言(需要重新启动)",
+    "Download particular time-range": "下载特定时间范围",
+    "End": "结束",
+    "If kept empty, it will start from the beginning": "如果留空,将从开始处开始",
+    "If kept empty, it will be downloaded to the end": "如果留空,将下载到末尾",
+    "Homepage": "主页",
+    "It's a Free and Open Source app built on top of Node.js and Electron. yt-dlp has been used for downloading": "这是一个基于 Node.js 和 Electron 构建的免费开源应用程序。使用 yt-dlp 下载",
+    "Source Code is available ": "源代码可在此处 ",
+    "here": "查看",
+    "Processing": "处理中",
+    "Some error has occurred. Check your network and use correct URL": "发生了一些错误。检查您的网络并使用正确的 URL",
+    "Failed to download necessary files. Please check your network and try again": "无法下载必要的文件。请检查您的网络并重试",
+    "Try again": "重试",
+    "Unknown size": "未知大小",
+    "MB": "MB",
+    "Unknown quality": "未知质量",
+    "Downloading...": "下载中...",
+    "Some error has occurred. Hover to see details": "发生了一些错误。悬停以查看详细信息",
+    "File saved successfully": "文件保存成功",
+    "File saved. Click to Open": "文件已保存。点击打开",
+    "Preparing...": "准备中...",
+    "Progress": "进度",
+    "Speed": "速度",
+    "Quality": "质量",
+    "Restart app": "重新启动应用程序",
+    "Subtitles": "字幕",
+    "Download subtitles if available": "下载可用的字幕",
+    "Download auto generated subtitles": "下载自动生成的字幕",
+    "Extract Audio from Video": "从视频中提取音频",
+    "Extract": "提取",
+    "Downloading necessary files": "下载必要的文件",
+    "low": "低",
+    "medium": "中",
+    "ytDownloader lets you download videos and audios from hundreds of sites like Youtube, Facebook, Instagram, Tiktok, Twitter and so on": "ytDownloader 让您可以从数百个网站上下载视频和音频,如 Youtube、Facebook、Instagram、Tiktok、Twitter 等等",
+    "Click to paste video link from clipboard [Ctrl + V]": "点击从剪贴板粘贴视频链接 [Ctrl + V]",
+    "Click to paste playlist link from clipboard [Ctrl + V]": "点击从剪贴板粘贴播放列表链接 [Ctrl + V]",
+    "Link:": "链接:",
+    "Downloading playlist:": "下载播放列表:",
+    "Download playlist": "下载播放列表",
+    "Playlist downloaded": "播放列表已下载",
+    "This option lets you download restricted content. You will get errors if cookies are not there": "此选项允许您下载受限制的内容。如果没有 cookies,您将会收到错误",
+    "Select browser to use cookies from": "选择要使用 cookies 的浏览器",
+    "None": "无",
+    "A new version is available, do you want to download it?": "有新版本可用,您要下载吗?",
+    "A new version is available, do you want to update?": "有新版本可用,您要更新吗?",
+    "Update": "更新",
+    "No": "否",
+    "Install and restart now?": "立即安装并重新启动吗?",
+    "Restart": "重新启动",
+    "Later": "稍后",
+    "Extract Audio": "提取音频",
+    "Select Video Format ": "选择视频格式 ",
+    "Select Audio Format ": "选择音频格式 ",
+    "Maximum number of active downloads": "最大活动下载数",
+    "Preferred video quality": "首选视频质量",
+    "Preferred audio format": "首选音频格式",
+    "Best": "最佳",
+    "File saved.": "文件已保存。",
+    "Open download folder": "打开下载文件夹",
+    "Path:": "路径:",
+    "Select config file": "选择配置文件",
+    "Use configuration file": "使用配置文件",
+    "Filename format for playlists": "播放列表的文件名格式",
+    "Folder name format for playlists": "播放列表的文件夹名格式",
+    "Reset to default": "重置为默认",
+    "Playlist range": "播放列表范围",
+    "Thumbnail": "缩略图",
+    "Link added": "链接已添加",
+    "Download thumbnails": "下载缩略图",
+    "Save video links to a file": "将视频链接保存到文件中",
+    "Close app to system tray": "将应用程序关闭到系统托盘",
+    "Use config file": "使用配置文件",
+    "Open app": "打开应用",
+    "Paste video link": "粘贴视频链接",
+    "Quit": "退出",
+    "Error Details": "错误详情",
+    "Click to copy": "点击复制",
+    "Copied text": "已复制文本",
+    "Normal": "普通",
+    "Good": "良好",
+    "Bad": "差",
+    "Worst": "最差",
+    "Select Quality": "选择质量",
+    "Disable auto updates": "禁用自动更新",
+    "ultralow": "超低",
+    "Close app when download finishes": "下载完成后关闭应用程序",
+    "Auto": "自动",
+    "Theme": "主题",
+    "Light": "Light",
+    "Dark": "Dark",
+    "Frappé": "Frappé",
+    "One Dark": "One Dark",
+    "Matrix": "Matrix",
+    "Solarized Dark": "Solarized Dark",
+    "Preferred video codec": "首选视频编解码器",
+    "Show more format options": "显示更多格式选项",
+    "You need to give the app permission to access home directory to use this. You can do it with Flatseal by enabling the permission with text 'filesystem=home'": "您需要授予应用程序访问主目录的权限才能使用此功能。您可以通过在 Flatseal 中启用权限并使用文本 'filesystem=home' 来执行此操作",
+    "No Audio": "无音频"
+}
\ No newline at end of file