iptv/scripts/store/getters/tvg_language.js
2022-02-11 19:56:11 +03:00

14 lines
269 B
JavaScript

module.exports = function () {
if (this.tvg_language) return this.tvg_language
if (this.languages.length) {
return this.languages
.map(language => (language ? language.name : null))
.filter(l => l)
.sort()
.join(';')
}
return ''
}