"get-i18n"

This commit is contained in:
vapormusic 2022-02-12 11:15:46 +07:00
parent 6b5cc68f6a
commit 127c628afd
2 changed files with 5 additions and 5 deletions

View file

@ -125,10 +125,10 @@
"term.equalizer": "Equalizer",
"term.reset": "Reset",
// Example for multiple plural forms : look up the key for your language in https://github.com/prantlf/fast-plural-rules/blob/master/docs/languages.md#supported-languages
"term.track": {
"one" : "track",
"other" : "tracks"
},
// "term.track": {
// "one" : "track",
// "other" : "tracks"
// },
"term.tracks": "tracks", // Assume x amount of tracks. e.g. 50 tracks
"term.videos": "Videos",
"term.menu": "Menu",

View file

@ -2153,7 +2153,7 @@ const app = new Vue({
let hours = Math.floor(time / 3600)
let mins = Math.floor(time / 60) % 60
let secs = time % 60
return app.showingPlaylist.relationships.tracks.data.length + " " + app.getLz('term.track', options = {count : app.showingPlaylist.relationships.tracks.data.length}) + ", "
return app.showingPlaylist.relationships.tracks.data.length + " " + app.getLz('term.tracks', options = {count : app.showingPlaylist.relationships.tracks.data.length}) + ", "
+ ((hours > 0) ? (hours + (" " + (app.getLz('term.time.hour', options = {count : hours}) + ", "))) : "") +
((mins > 0) ? (mins + (" " + app.getLz('term.time.minute', options = {count : mins}) + ", ")) : "") +
secs + (" " + app.getLz('term.time.second', options = {count : secs}) + ".");