feat: use vue-i18n for language switch (#23)

* 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
This commit is contained in:
Hawtim Zhang 2020-10-19 23:14:26 +08:00 committed by GitHub
parent 00774d3a91
commit ecee495a18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 246 additions and 65 deletions

View file

@ -3,7 +3,7 @@
<h1>
<img class="head" :src="user.profile.avatarUrl | resizeImage" />{{
user.profile.nickname
}}'s Library
}}{{ $t("is") }} {{ $t("library") }}
</h1>
<div class="section-one">
<div class="liked-songs" @click="goToLikedSongsList">
@ -19,7 +19,7 @@
</div>
<div class="bottom">
<div class="titles">
<div class="title">Liked Songs</div>
<div class="title">{{ $t("likedSong") }}</div>
<div class="sub-title">
{{ likedSongsPlaylist.trackCount }} songs
</div>
@ -41,7 +41,7 @@
</div>
<div class="playlists" v-if="playlists.length > 1">
<div class="title">Playlists</div>
<div class="title">{{ $t("playlist") }}</div>
<div>
<CoverRow
:items="playlists.slice(1)"