From 745d7d6a4aca49b192ced045b0aa0d5fee90a6aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=AC=E5=A4=A9=E5=86=AC=E5=A4=A9W?= Date: Tue, 22 Nov 2022 13:26:12 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E6=96=B0=E5=A2=9E=E8=BD=AF?= =?UTF-8?q?=E4=BB=B6=E5=90=8D=E7=A7=B0=E6=B1=89=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增软件名称汉化 移除少数中文版不常用软件 --- src/utils/apps.js | 81 +++++++++++++++------------------------------- src/utils/index.js | 24 +++++++------- 2 files changed, 37 insertions(+), 68 deletions(-) diff --git a/src/utils/apps.js b/src/utils/apps.js index 8205ba8..cb9247b 100644 --- a/src/utils/apps.js +++ b/src/utils/apps.js @@ -23,13 +23,13 @@ const apps = [ action: "WIDGETS", }, { - name: "Settings", + name: "设置", icon: "settings", type: "app", action: "SETTINGS", }, { - name: "Task Manager", + name: "任务管理器", icon: "taskmanager", type: "app", action: "TASKMANAGER", @@ -70,50 +70,45 @@ const apps = [ type: "short", }, { - name: "Alarms", + name: "闹钟和时钟", icon: "alarm", type: "app", }, { - name: "Calculator", + name: "计算器", icon: "calculator", type: "app", action: "CALCUAPP", }, { - name: "Calendar", + name: "日历", icon: "calendar", type: "app", }, { - name: "Camera", + name: "相机", icon: "camera", type: "app", action: "CAMERA", }, { - name: "Your Phone", + name: "手机连接", icon: "yphone", type: "app", }, { - name: "Feedback", + name: "反馈中心", icon: "feedback", type: "app", }, { - name: "Get Started", + name: "入门", icon: "getstarted", type: "app", action: "OOBE", }, { - name: "Groove Music", - icon: "groove", - type: "app", - }, - { - name: "Help", + name: "获取帮助", icon: "help", type: "app", action: "EXTERNAL", @@ -125,14 +120,14 @@ const apps = [ type: "app", }, { - name: "Mail", + name: "邮件", icon: "mail", type: "app", action: "EXTERNAL", - payload: "mailto:blueedgetechno@gmail.com", + payload: "mailto:inwinter04@163.com", }, { - name: "Movies", + name: "电影和电视", icon: "movies", type: "app", }, @@ -147,23 +142,23 @@ const apps = [ type: "app", }, { - name: "Narrator", + name: "讲述人", icon: "narrator", type: "app", }, { - name: "News", + name: "资讯", icon: "news", type: "app", }, { - name: "Notepad", + name: "记事本", icon: "notepad", type: "app", action: "NOTEPAD", }, { - name: "Sticky Notes", + name: "便笺", icon: "notes", type: "app", }, @@ -183,24 +178,12 @@ const apps = [ type: "app", }, { - name: "People", - icon: "people", - type: "app", - }, - { - name: "Photos", + name: "照片", icon: "photos", type: "app", }, { - name: "Pinterest", - icon: "pinterest", - type: "app", - action: "EXTERNAL", - payload: "https://www.pinterest.com/blueedgetechno/", - }, - { - name: "Security", + name: "Windows 安全中心", icon: "security", type: "app", }, @@ -221,50 +204,38 @@ const apps = [ type: "app", }, { - name: "Snipping Tool", + name: "截图工具", icon: "snip", type: "app", }, - { - name: "Twitter", - icon: "twitter", - type: "app", - action: "EXTERNAL", - payload: "https://twitter.com/blueedgetechno", - }, { name: "Teams", icon: "teams", type: "app", }, { - name: "Terminal", + name: "终端", icon: "terminal", type: "app", action: "TERMINAL", }, { - name: "Tips", + name: "提示", icon: "tips", type: "app", }, { - name: "To Do", - icon: "todo", - type: "app", - }, - { - name: "Maps", + name: "地图", icon: "maps", type: "app", }, { - name: "Voice Recorder", + name: "录音机", icon: "voice", type: "app", }, { - name: "Weather", + name: "天气", icon: "weather", type: "app", }, @@ -284,7 +255,7 @@ const apps = [ icon: "github", type: "app", action: "EXTERNAL", - payload: "https://github.com/blueedgetechno/win11React", + payload: "https://github.com/inwinter04/win11React_CN", }, { name: "Unescape", diff --git a/src/utils/index.js b/src/utils/index.js index 1bb0f87..7a410a4 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -3,7 +3,7 @@ import icons from "./apps"; var { taskbar, desktop, pinned, recent } = { taskbar: (localStorage.getItem("taskbar") && JSON.parse(localStorage.getItem("taskbar"))) || [ - "Settings", + "设置", "文件资源管理器", "Microsoft Edge", "Store", @@ -24,28 +24,26 @@ var { taskbar, desktop, pinned, recent } = { pinned: (localStorage.getItem("pinned") && JSON.parse(localStorage.getItem("pinned"))) || [ "Microsoft Edge", - "Get Started", - "Task Manager", - "Mail", - "Settings", + "入门", + "任务管理器", + "邮件", + "设置", "Store", "Unescape", "Buy me a coffee", - "Notepad", + "记事本", "Whiteboard", - "Calculator", + "计算器", "Spotify", - "Twitter", "文件资源管理器", - "Terminal", + "终端", "Github", - "Camera", + "相机", ], recent: (localStorage.getItem("recent") && JSON.parse(localStorage.getItem("recent"))) || [ - "Mail", - "Twitter", - "Terminal", + "邮件", + "终端", "Github", "文件资源管理器", "Spotify",