mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 21:28:06 +00:00
修改翻译以及locale结构
This commit is contained in:
parent
ecee495a18
commit
1657935ba1
11 changed files with 316 additions and 259 deletions
|
|
@ -1,12 +1,17 @@
|
|||
import Vue from 'vue';
|
||||
import VueI18n from 'vue-i18n'
|
||||
import messages from './messages';
|
||||
import Vue from "vue";
|
||||
import VueI18n from "vue-i18n";
|
||||
|
||||
Vue.use(VueI18n)
|
||||
import en from "./lang/en.js";
|
||||
import zhCN from "./lang/zh-CN.js";
|
||||
|
||||
Vue.use(VueI18n);
|
||||
|
||||
const i18n = new VueI18n({
|
||||
locale: 'zh-CN',
|
||||
messages
|
||||
locale: "en",
|
||||
messages: {
|
||||
en,
|
||||
"zh-CN": zhCN
|
||||
}
|
||||
});
|
||||
|
||||
export default i18n;
|
||||
export default i18n;
|
||||
|
|
|
|||
83
src/locale/lang/en.js
Normal file
83
src/locale/lang/en.js
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
export default {
|
||||
play: "PLAY",
|
||||
nav: {
|
||||
home: "Home",
|
||||
explore: "Explore",
|
||||
library: "Library",
|
||||
search: "Search"
|
||||
},
|
||||
footer: {
|
||||
settings: "Settings"
|
||||
},
|
||||
home: {
|
||||
recommendPlaylist: "Recommended Playlists",
|
||||
recommendArtist: "Recommended Artists",
|
||||
newAlbum: "Latest Albums",
|
||||
seeMore: "SEE MORE",
|
||||
charts: "Charts"
|
||||
},
|
||||
library: {
|
||||
sLibrary: "'s Library",
|
||||
likedSongs: "Liked Songs",
|
||||
sLikedSongs: "'s LikedSongs"
|
||||
},
|
||||
explore: {
|
||||
explore: "Explore",
|
||||
loadMore: "Load More"
|
||||
},
|
||||
artist: {
|
||||
latestRelease: "Latest Releases",
|
||||
popularSongs: "Popular Songs",
|
||||
showMore: "SHOW MORE",
|
||||
showLess: "SHOW LESS",
|
||||
EPSingle: "EPs & Singles",
|
||||
albums: "Albums"
|
||||
},
|
||||
album: {
|
||||
released: "Released"
|
||||
},
|
||||
playlist: {
|
||||
playlist: "Playlists",
|
||||
updatedAt: "Updated at"
|
||||
},
|
||||
login: {
|
||||
accessToAll: "Access to all data",
|
||||
loginText: "Login in Netease",
|
||||
search: "Search account",
|
||||
readonly: "Only access to public data",
|
||||
usernameLogin: "Username Login",
|
||||
searchHolder: "Your account username",
|
||||
enterTip: "Press 'enter' to search",
|
||||
choose: "Choose your account",
|
||||
confirm: "Confirm",
|
||||
countryCode: "Country code",
|
||||
phone: "Phone",
|
||||
email: "Email address",
|
||||
password: "Password",
|
||||
login: "Login",
|
||||
loginWithEmail: "Login with Email",
|
||||
loginWithPhone: "Login with Phone",
|
||||
// TODO
|
||||
agreement: `YesPlayMusic promises not to save any of your account information to the cloud.
|
||||
Your password will be MD5 encrypted locally and then transmitted to NetEase Cloud API.
|
||||
YesPlayMusic is not the official website of NetEase Cloud Music, please consider carefully before entering account information. You can also go to <a href="https://github.com/qier222/YesPlayMusic">YesPlayMusic's GitHub repository</a> to build and use the self-hosted NetEase Cloud Music API.`
|
||||
},
|
||||
mv: {
|
||||
moreVideo: "More Videos"
|
||||
},
|
||||
next: {
|
||||
nowPlaying: "Now Playing",
|
||||
nextUp: "Next Up"
|
||||
},
|
||||
player: {
|
||||
like: "Like",
|
||||
previous: "Previous Song",
|
||||
next: "Next Song",
|
||||
repeat: "Repeat",
|
||||
shuffle: "Shuffle",
|
||||
play: "Play",
|
||||
pause: "Pause",
|
||||
mute: "Mute",
|
||||
nextUp: "Next Up"
|
||||
}
|
||||
};
|
||||
87
src/locale/lang/zh-CN.js
Normal file
87
src/locale/lang/zh-CN.js
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
export default {
|
||||
play: "播放",
|
||||
nav: {
|
||||
home: "首页",
|
||||
explore: "发现",
|
||||
library: "资料库",
|
||||
search: "搜索"
|
||||
},
|
||||
footer: {
|
||||
settings: "设置"
|
||||
},
|
||||
home: {
|
||||
recommendPlaylist: "推荐歌单",
|
||||
recommendArtist: "推荐歌手",
|
||||
newAlbum: "新专速递",
|
||||
seeMore: "更多",
|
||||
charts: "排行榜"
|
||||
},
|
||||
library: {
|
||||
sLibrary: "的资料库",
|
||||
likedSongs: "我喜欢的歌",
|
||||
sLikedSongs: "喜欢的歌"
|
||||
},
|
||||
explore: {
|
||||
explore: "发现",
|
||||
loadMore: "加载更多"
|
||||
},
|
||||
artist: {
|
||||
latestRelease: "最新发布",
|
||||
popularSongs: "热门歌曲",
|
||||
showMore: "显示更多",
|
||||
showLess: "收起",
|
||||
EPSingle: "EP和单曲",
|
||||
albums: "专辑"
|
||||
},
|
||||
album: {
|
||||
released: "发行于"
|
||||
},
|
||||
playlist: {
|
||||
playlist: "歌单",
|
||||
updatedAt: "最后更新于"
|
||||
},
|
||||
login: {
|
||||
accessToAll: "可访问全部数据",
|
||||
loginText: "登录网易云账号",
|
||||
search: "搜索网易云账号",
|
||||
readonly: "只能读取账号公开数据",
|
||||
usernameLogin: "用户名登录",
|
||||
searchHolder: "请输入你的网易云用户名",
|
||||
enterTip: "按 Enter 搜索",
|
||||
choose: "在列表中选中你的账号",
|
||||
confirm: "确认",
|
||||
countryCode: "国际区号",
|
||||
phone: "手机号",
|
||||
email: "邮箱",
|
||||
password: "密码",
|
||||
login: "登录",
|
||||
usingEmail: "使用邮箱登录",
|
||||
usingPhone: "使用手机号登录",
|
||||
// TODO
|
||||
agreement: `YesPlayMusic 承诺不会保存你的任何账号信息到云端。<br />
|
||||
你的密码会在本地进行 MD5 加密后再传输到网易云 API。<br />
|
||||
YesPlayMusic 并非网易云官方网站,输入账号信息前请慎重考虑。 你也可以前往
|
||||
<a href="https://github.com/qier222/YesPlayMusic"
|
||||
>YesPlayMusic 的 GitHub 源代码仓库</a
|
||||
>
|
||||
自行构建并使用自托管的网易云 API。`
|
||||
},
|
||||
mv: {
|
||||
moreVideo: "更多视频"
|
||||
},
|
||||
next: {
|
||||
nowPlaying: "正在播放",
|
||||
nextUp: "即将播放"
|
||||
},
|
||||
player: {
|
||||
like: "喜欢",
|
||||
previous: "上一首",
|
||||
next: "下一首",
|
||||
repeat: "单曲循环",
|
||||
shuffle: "随机播放",
|
||||
play: "播放",
|
||||
pause: "暂停",
|
||||
mute: "静音",
|
||||
nextUp: "播放列表"
|
||||
}
|
||||
};
|
||||
|
|
@ -1,144 +0,0 @@
|
|||
export default {
|
||||
en: {
|
||||
nav: {
|
||||
home: "Home",
|
||||
explore: "Explore",
|
||||
library: "Library",
|
||||
search: "Search"
|
||||
},
|
||||
footer: {
|
||||
settings: 'Settings',
|
||||
},
|
||||
home: {
|
||||
recommendPlaylist: "Recommended Playlist",
|
||||
recommendArtist: "Recommended Artist",
|
||||
newAlbum: "Lastest Album",
|
||||
leaderboard: "Leaderboard",
|
||||
seeMore: "SEE MORE",
|
||||
},
|
||||
library: "Library",
|
||||
explore: {
|
||||
explore: "Explore",
|
||||
loadMore: "Load More",
|
||||
},
|
||||
artist: {
|
||||
latestRelease: "Latest Release",
|
||||
popularSongs: "Popular Songs",
|
||||
showMore: "SHOW MORE",
|
||||
showLess: "SHOW LESS",
|
||||
EPSingle: "EPs & Singles",
|
||||
albums: "Albums"
|
||||
},
|
||||
album: {
|
||||
released: "Released",
|
||||
},
|
||||
login: {
|
||||
accessToAll: "Access to all data",
|
||||
loginText: "Login in Netease",
|
||||
search: "Search account",
|
||||
readonly: "Only access to public data",
|
||||
usernameLogin: "Username Login",
|
||||
searchHolder: "Your account username",
|
||||
enterTip: "Press 'enter' to search",
|
||||
choose: "Choose your account",
|
||||
confirm: "confirm",
|
||||
countrycode: 'countrycode',
|
||||
phone: 'phone',
|
||||
email: 'email',
|
||||
password: 'password',
|
||||
login: 'Login',
|
||||
usingEmail: 'Using email',
|
||||
usingPhone: 'Using phone',
|
||||
// TODO
|
||||
agreement: `YesPlayMusic promises not to save any of your account information to the cloud.
|
||||
Your password will be MD5 encrypted locally and then transmitted to NetEase Cloud API.
|
||||
YesPlayMusic is not the official website of NetEase Cloud, please consider carefully before entering account information. You can also go to <a href="https://github.com/qier222/YesPlayMusic">YesPlayMusic's GitHub repository</a> to build and use the self-hosted NetEase Cloud API.`
|
||||
},
|
||||
mv: {
|
||||
moreVideo: 'More Videos'
|
||||
},
|
||||
next: {
|
||||
nowPlaying: 'Now Playing',
|
||||
nextUp: 'Next Up'
|
||||
},
|
||||
playlist: "Playlists",
|
||||
play: "PLAY",
|
||||
likedSong: "Liked Songs",
|
||||
shortIs: "'s",
|
||||
is: "'s",
|
||||
updatedAt: "Updated at",
|
||||
},
|
||||
"zh-CN": {
|
||||
nav: {
|
||||
home: "首页",
|
||||
explore: "发现",
|
||||
library: "歌单",
|
||||
search: "搜索"
|
||||
},
|
||||
footer: {
|
||||
settings: '设置',
|
||||
},
|
||||
home: {
|
||||
recommendPlaylist: "推荐歌单",
|
||||
recommendArtist: "推荐歌手",
|
||||
newAlbum: "新专速递",
|
||||
leaderboard: "排行榜",
|
||||
seeMore: "更多",
|
||||
},
|
||||
library: "歌单",
|
||||
explore: {
|
||||
explore: "发现",
|
||||
loadMore: "加载更多",
|
||||
},
|
||||
artist: {
|
||||
latestRelease: "最新发布",
|
||||
popularSongs: "热门歌曲",
|
||||
showMore: "显示更多",
|
||||
showLess: "收起",
|
||||
EPSingle: "专辑及单曲",
|
||||
albums: "专辑"
|
||||
},
|
||||
album: {
|
||||
released: "发布于",
|
||||
},
|
||||
login: {
|
||||
accessToAll: "可访问全部数据",
|
||||
loginText: "登录网易云账号",
|
||||
search: "搜索网易云账号",
|
||||
readonly: "只能读取账号公开数据",
|
||||
usernameLogin: '用户名登录',
|
||||
searchHolder: "请输入你的网易云用户名",
|
||||
enterTip: "按 Enter 搜索",
|
||||
choose: "在列表中选中你的账号",
|
||||
confirm: "确认",
|
||||
countrycode: '国际区号',
|
||||
phone: '手机号',
|
||||
email: '邮箱',
|
||||
password: '密码',
|
||||
login: '登录',
|
||||
usingEmail: '使用邮箱登录',
|
||||
usingPhone: '使用手机号登录',
|
||||
// TODO
|
||||
agreement: `YesPlayMusic 承诺不会保存你的任何账号信息到云端。<br />
|
||||
你的密码会在本地进行 MD5 加密后再传输到网易云 API。<br />
|
||||
YesPlayMusic 并非网易云官方网站,输入账号信息前请慎重考虑。 你也可以前往
|
||||
<a href="https://github.com/qier222/YesPlayMusic"
|
||||
>YesPlayMusic 的 GitHub 源代码仓库</a
|
||||
>
|
||||
自行构建并使用自托管的网易云 API。`
|
||||
},
|
||||
mv: {
|
||||
moreVideo: '更多视频'
|
||||
},
|
||||
next: {
|
||||
nowPlaying: '正在播放',
|
||||
nextUp: '即将播放'
|
||||
},
|
||||
playlist: "播放列表",
|
||||
play: "播放",
|
||||
likedSong: "我喜欢的音乐",
|
||||
shortIs: "",
|
||||
is: "的",
|
||||
updatedAt: "更新于"
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue