fix: Navbar i18n & Github -> GitHub (#443)

* update: Navbar i18n

* update: Github -> GitHub
master
Rick 4 years ago committed by GitHub
parent 849f67d335
commit 2a9a53a940
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -124,7 +124,7 @@ class Background {
.showMessageBox({ .showMessageBox({
title: "发现新版本 v" + info.version, title: "发现新版本 v" + info.version,
message: "发现新版本 v" + info.version, message: "发现新版本 v" + info.version,
detail: "是否前往 Github 下载新版本安装包?", detail: "是否前往 GitHub 下载新版本安装包?",
buttons: ["下载", "取消"], buttons: ["下载", "取消"],
type: "question", type: "question",
noLink: true, noLink: true,

@ -68,7 +68,7 @@
<ContextMenu ref="userProfileMenu"> <ContextMenu ref="userProfileMenu">
<div class="item" @click="toLogin" v-if="!isLooseLoggedIn"> <div class="item" @click="toLogin" v-if="!isLooseLoggedIn">
<svg-icon icon-class="login" /> <svg-icon icon-class="login" />
登录 {{ $t("login.login") }}
</div> </div>
<div class="item" @click="toSettings"> <div class="item" @click="toSettings">
<svg-icon icon-class="settings" /> <svg-icon icon-class="settings" />
@ -80,7 +80,8 @@
</div> </div>
<hr /> <hr />
<div class="item" @click="toGitHub"> <div class="item" @click="toGitHub">
<svg-icon icon-class="github" /> GitHub仓库 <svg-icon icon-class="github" />
{{ $t("nav.github") }}
</div> </div>
</ContextMenu> </ContextMenu>
</div> </div>

@ -163,7 +163,7 @@ export function createMenu(win) {
label: "Help", label: "Help",
submenu: [ submenu: [
{ {
label: "Github", label: "GitHub",
click: async () => { click: async () => {
const { shell } = require("electron"); const { shell } = require("electron");
await shell.openExternal("https://github.com/qier222/YesPlayMusic"); await shell.openExternal("https://github.com/qier222/YesPlayMusic");

@ -8,6 +8,7 @@ export default {
explore: "Explore", explore: "Explore",
library: "Library", library: "Library",
search: "Search", search: "Search",
github: "GitHub Repo",
}, },
footer: { footer: {
settings: "Settings", settings: "Settings",

@ -8,6 +8,7 @@ export default {
explore: "发现", explore: "发现",
library: "音乐库", library: "音乐库",
search: "搜索", search: "搜索",
github: "GitHub 仓库",
}, },
home: { home: {
recommendPlaylist: "推荐歌单", recommendPlaylist: "推荐歌单",

Loading…
Cancel
Save