oops
This commit is contained in:
parent
34c956fe99
commit
6d9768230f
1 changed files with 1 additions and 1 deletions
|
@ -3699,7 +3699,7 @@ const app = new Vue({
|
|||
if (langcodes) langcodes = langcodes.map(function (u) { return u.toLowerCase() })
|
||||
console.log(langcodes)
|
||||
let sellang = ""
|
||||
if (u && langcodes.startsWith(u.toLowerCase().replace('_', "-"))) {
|
||||
if (u && langcodes.includes(u.toLowerCase().replace('_', "-"))) {
|
||||
sellang = ((u.toLowerCase()).replace('_', "-"))
|
||||
} else if (u && u.includes('_') && langcodes.includes(((u.toLowerCase()).replace('_', "-")).split("-")[0])) {
|
||||
sellang = ((u.toLowerCase()).replace('_', "-")).split("-")[0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue