feat: settings page i18n supported (#42)

* 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

* fix: commitMP3 and countrycode to countryCode

* lint: prettier

* feat: settings page i18n supported
master
Hawtim Zhang 4 years ago committed by GitHub
parent 01bfe7fa20
commit 6c6e1f1a9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -97,4 +97,16 @@ export default {
common: { common: {
songs: "Songs", songs: "Songs",
}, },
settings: {
settings: "Settings",
logout: "LOGOUT",
language: "Languages",
musicQuality: {
text: "Music Quality",
low: "Low",
medium: "Medium",
high: "High",
lossless: "Lossless",
},
},
}; };

@ -102,4 +102,16 @@ export default {
common: { common: {
songs: "首歌", songs: "首歌",
}, },
settings: {
settings: "选项",
logout: "登出",
language: "语言",
musicQuality: {
text: "音质选择",
low: "普通",
medium: "较高",
high: "极高",
lossless: "无损",
},
},
}; };

@ -18,18 +18,16 @@
</div> </div>
</div> </div>
<div class="right"> <div class="right">
<button @click="logout" <button @click="logout">
><svg-icon icon-class="logout" />LOGOUT</button <svg-icon icon-class="logout" />
> {{ $t("settings.logout") }}
</button>
</div> </div>
</div> </div>
<h2>{{ $t("settings.settings") }}</h2>
<h2>Settings</h2>
<div class="item"> <div class="item">
<div class="left"> <div class="left">
<div class="title"> <div class="title"> {{ $t("settings.language") }} </div>
Languages
</div>
</div> </div>
<div class="right"> <div class="right">
<select v-model="lang"> <select v-model="lang">
@ -40,16 +38,22 @@
</div> </div>
<div class="item"> <div class="item">
<div class="left"> <div class="left">
<div class="title"> <div class="title"> {{ $t("settings.musicQuality.text") }} </div>
Music Quality
</div>
</div> </div>
<div class="right"> <div class="right">
<select v-model="musicQuality"> <select v-model="musicQuality">
<option value="128000">Low - 128Kbps</option> <option value="128000">
<option value="192000">Medium - 192Kbps</option> {{ $t("settings.musicQuality.low") }} - 128Kbps
<option value="320000">Hight - 320Kbps</option> </option>
<option value="999000">Lossless - FLAC</option> <option value="192000">
{{ $t("settings.musicQuality.medium") }} - 192Kbps
</option>
<option value="320000">
{{ $t("settings.musicQuality.high") }} - 320Kbps
</option>
<option value="999000">
{{ $t("settings.musicQuality.lossless") }} - FLAC
</option>
</select> </select>
</div> </div>
</div> </div>

Loading…
Cancel
Save