feat: prettier task supported (#40)

* feat: add config to resolve path alias.

* feat: use vue-i18n for language switch

* feat: add .editorconfig for ide

* fix: add no-referrer to avoid CROB

* fix: setCookie and fix typo

* feat: integrate vue-i18n

* feat: player component i18n support

* fix: duplicate key warning in explore page

* fix: like songs number changed in library page

* fire: remove todo

* fix: same text search on enter will cause error

* fix: scrobble error params type

* feat: prettier task supported

* fix: prettier ignore config update

* fix: conflict
This commit is contained in:
Hawtim Zhang 2020-10-22 21:44:34 +08:00 committed by GitHub
parent 56fe497db9
commit c042faa001
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
44 changed files with 1755 additions and 1445 deletions

View file

@ -11,8 +11,8 @@ const i18n = new VueI18n({
locale: store.state.settings.lang,
messages: {
en,
"zh-CN": zhCN
}
"zh-CN": zhCN,
},
});
export default i18n;

View file

@ -4,26 +4,26 @@ export default {
home: "Home",
explore: "Explore",
library: "Library",
search: "Search"
search: "Search",
},
footer: {
settings: "Settings"
settings: "Settings",
},
home: {
recommendPlaylist: "Recommended Playlists",
recommendArtist: "Recommended Artists",
newAlbum: "Latest Albums",
seeMore: "SEE MORE",
charts: "Charts"
charts: "Charts",
},
library: {
sLibrary: "'s Library",
likedSongs: "Liked Songs",
sLikedSongs: "'s LikedSongs"
sLikedSongs: "'s LikedSongs",
},
explore: {
explore: "Explore",
loadMore: "Load More"
loadMore: "Load More",
},
artist: {
latestRelease: "Latest Releases",
@ -34,14 +34,14 @@ export default {
albums: "Albums",
withAlbums: "Albums",
artist: "Artist",
videos: "Music Videos"
videos: "Music Videos",
},
album: {
released: "Released"
released: "Released",
},
playlist: {
playlist: "Playlists",
updatedAt: "Updated at"
updatedAt: "Updated at",
},
login: {
accessToAll: "Access to all data",
@ -62,14 +62,14 @@ export default {
loginWithPhone: "Login with Phone",
notice: `YesPlayMusic promises not to save any of your account information to the cloud.<br />
Your password will be MD5 encrypted locally and then transmitted to NetEase Cloud API.<br />
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.`
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"
moreVideo: "More Videos",
},
next: {
nowPlaying: "Now Playing",
nextUp: "Next Up"
nextUp: "Next Up",
},
player: {
like: "Like",
@ -80,10 +80,10 @@ export default {
play: "Play",
pause: "Pause",
mute: "Mute",
nextUp: "Next Up"
nextUp: "Next Up",
},
modal: {
close: "Close"
close: "Close",
},
search: {
artist: "Artists",
@ -92,9 +92,9 @@ export default {
mv: "MVs",
playlist: "Playlists",
noResult: "No Results",
searchFor: "Search for"
searchFor: "Search for",
},
common: {
songs: "Songs",
}
},
};

View file

@ -4,26 +4,26 @@ export default {
home: "首页",
explore: "发现",
library: "资料库",
search: "搜索"
search: "搜索",
},
footer: {
settings: "设置"
settings: "设置",
},
home: {
recommendPlaylist: "推荐歌单",
recommendArtist: "推荐歌手",
newAlbum: "新专速递",
seeMore: "更多",
charts: "排行榜"
charts: "排行榜",
},
library: {
sLibrary: "的资料库",
likedSongs: "我喜欢的歌",
sLikedSongs: "喜欢的歌"
sLikedSongs: "喜欢的歌",
},
explore: {
explore: "发现",
loadMore: "加载更多"
loadMore: "加载更多",
},
artist: {
latestRelease: "最新发布",
@ -34,14 +34,14 @@ export default {
albums: "专辑",
withAlbums: "张专辑",
artist: "歌手",
videos: "个视频"
videos: "个视频",
},
album: {
released: "发行于"
released: "发行于",
},
playlist: {
playlist: "歌单",
updatedAt: "最后更新于"
updatedAt: "最后更新于",
},
login: {
accessToAll: "可访问全部数据",
@ -67,14 +67,14 @@ export default {
<a href="https://github.com/qier222/YesPlayMusic"
>YesPlayMusic GitHub 源代码仓库</a
>
自行构建并使用自托管的网易云 API`
自行构建并使用自托管的网易云 API`,
},
mv: {
moreVideo: "更多视频"
moreVideo: "更多视频",
},
next: {
nowPlaying: "正在播放",
nextUp: "即将播放"
nextUp: "即将播放",
},
player: {
like: "喜欢",
@ -85,10 +85,10 @@ export default {
play: "播放",
pause: "暂停",
mute: "静音",
nextUp: "播放列表"
nextUp: "播放列表",
},
modal: {
close: "关闭"
close: "关闭",
},
search: {
artist: "歌手",
@ -97,9 +97,9 @@ export default {
mv: "视频",
playlist: "歌单",
noResult: "暂无结果",
searchFor: "搜索"
searchFor: "搜索",
},
common: {
songs: "首歌",
}
},
};