mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
.
This commit is contained in:
parent
5473caaca3
commit
a93c1b9e1a
@ -191,7 +191,7 @@ function switchlang(lang) {
|
|||||||
function browserlang() {
|
function browserlang() {
|
||||||
let l = navigator.language
|
let l = navigator.language
|
||||||
if (l.includes('-')) l = l.split('-')[0]
|
if (l.includes('-')) l = l.split('-')[0]
|
||||||
if (supportlangs.includes(l)) return l
|
if (supportlangs[l]) return l
|
||||||
return 'en'
|
return 'en'
|
||||||
}
|
}
|
||||||
const titleids = ['homepage', 'downloadlink', 'vediotutorial', 'contactme', 'bit64link', 'bit32link']
|
const titleids = ['homepage', 'downloadlink', 'vediotutorial', 'contactme', 'bit64link', 'bit32link']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user