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