Skip to content

Commit

Permalink
Merge pull request #12 from inwinter04/Dev
Browse files Browse the repository at this point in the history
✨ 新增软件名称汉化
  • Loading branch information
inwinter04 authored Nov 22, 2022
2 parents b192722 + 745d7d6 commit 901d57b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 68 deletions.
81 changes: 26 additions & 55 deletions src/utils/apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
},
Expand All @@ -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",
},
Expand All @@ -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",
},
Expand All @@ -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",
},
Expand All @@ -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",
Expand Down
24 changes: 11 additions & 13 deletions src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

1 comment on commit 901d57b

@vercel
Copy link

@vercel vercel bot commented on 901d57b Nov 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.