Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 完成搜索菜单汉化 #7

Merged
merged 1 commit into from
Nov 8, 2022
Merged
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
14 changes: 7 additions & 7 deletions src/components/start/start.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export const StartMenu = () => {
data-action="STARTALL"
>
<Icon className="chevLeft" fafa="faChevronLeft" width={8} />
<div>Back</div>
<div>返回</div>
</div>
</div>
<div className="allApps win11Scroll" data-alpha={start.alpha}>
Expand Down Expand Up @@ -387,15 +387,15 @@ export const StartMenu = () => {
data-width={query.length != 0}
>
<div className="text-sm font-semibold mb-4">
{query.length ? "Best match" : "Top apps"}
{query.length ? "最佳匹配" : "最近"}
</div>
{query.length ? (
<div className="textResult h-16">
<div className="smatch flex my-2 p-3 rounded">
<Icon src={match.icon} width={24} />
<div className="matchInfo flex-col px-2">
<div className="font-semibold text-xs">{match.name}</div>
<div className="text-xss">App</div>
<div className="text-xss">应用</div>
</div>
</div>
<div
Expand All @@ -406,8 +406,8 @@ export const StartMenu = () => {
>
<Icon className="blueicon" src="search" ui width={20} />
<div className="matchInfo flex-col px-2">
<div className="font-semibold text-xs">Search online</div>
<div className="text-xss">Web</div>
<div className="font-semibold text-xs">搜索网页</div>
<div className="text-xss">网页</div>
</div>
</div>
</div>
Expand All @@ -430,7 +430,7 @@ export const StartMenu = () => {
})}
</div>
<div className="text-sm font-semibold mt-8">
Quick Searches
快速搜索
</div>
<div className="quickSearches mt-2">
{start.qksrch.map((srch, i) => {
Expand Down Expand Up @@ -464,7 +464,7 @@ export const StartMenu = () => {
data-payload={match.payload ? match.payload : "full"}
>
<Icon className="blueicon" src="link" ui width={16} />
<div className="text-xss ml-3">Open</div>
<div className="text-xss ml-3">打开</div>
</div>
</div>
) : null}
Expand Down
14 changes: 0 additions & 14 deletions src/containers/applications/apps/settings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,20 +134,6 @@ export const Settings = () => {
</div>
</div>
<div className="right">
<div className="column">
<img
src="https://upload.wikimedia.org/wikipedia/commons/2/25/Microsoft_icon.svg"
height={20}
alt=""
/>
<p>
Microsoft 365
<br />
<span className="column_lower">
View benefits
</span>
</p>
</div>
<div
className="column"
onClick={() => setPage("Windows 更新")}
Expand Down
8 changes: 4 additions & 4 deletions src/reducers/startmenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ const defState = {
pwctrl: false,
curAlpha: "A",
qksrch: [
["faClock", 1, "Today in history"],
["faChartLine", null, "Markets today"],
["faFilm", null, "New movies"],
["faNewspaper", 1, "Top news"],
["faClock", 1, "历史的今天"],
["faChartLine", null, "今日市场"], //emmm,似乎是股票。这咋翻译哇(冬天
["faFilm", null, "近期电影"],
["faNewspaper", 1, "头条新闻"],
],
};

Expand Down