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

* update: Navbar i18n

* update: Github -> GitHub
This commit is contained in:
Rick 2021-03-19 09:58:17 +08:00 committed by GitHub
parent 849f67d335
commit 2a9a53a940
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 4 deletions

View File

@ -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,

View File

@ -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>

View File

@ -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");

View File

@ -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",

View File

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